diff --git a/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthPolicyEditor.bat b/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthPolicyEditor.bat index bb6ed8ba..264d37ba 100644 --- a/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthPolicyEditor.bat +++ b/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthPolicyEditor.bat @@ -29,5 +29,5 @@ rem # rem ######################################################################## rem # Perform the operation requested -ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIRats\lib\CasaAuthPolicyEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 +ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIR\bin\CasaAuthPolicyEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthTokenSettingsEditor.bat b/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthTokenSettingsEditor.bat index 2006bfda..04065c10 100644 --- a/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthTokenSettingsEditor.bat +++ b/CASA-auth-token/server-java/Svc/templates/windows/CasaAuthTokenSettingsEditor.bat @@ -29,5 +29,5 @@ rem # rem ######################################################################## rem # Perform the operation requested -ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIRats\lib\CasaAuthTokenSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 +ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIR\bin\CasaAuthTokenSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/CASA-auth-token/server-java/Svc/templates/windows/CasaIdenTokenSettingsEditor.bat b/CASA-auth-token/server-java/Svc/templates/windows/CasaIdenTokenSettingsEditor.bat index 17cd7982..be8d0d34 100644 --- a/CASA-auth-token/server-java/Svc/templates/windows/CasaIdenTokenSettingsEditor.bat +++ b/CASA-auth-token/server-java/Svc/templates/windows/CasaIdenTokenSettingsEditor.bat @@ -29,5 +29,5 @@ rem # rem ######################################################################## rem # Peform the operation requested -ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIRats\lib\CasaIdenTokenSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 +ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIR\bin\CasaIdenTokenSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/CASA-auth-token/server-java/Svc/templates/windows/CasaSvcSettingsEditor.bat b/CASA-auth-token/server-java/Svc/templates/windows/CasaSvcSettingsEditor.bat index 3bdbab3b..371ee5bd 100644 --- a/CASA-auth-token/server-java/Svc/templates/windows/CasaSvcSettingsEditor.bat +++ b/CASA-auth-token/server-java/Svc/templates/windows/CasaSvcSettingsEditor.bat @@ -29,5 +29,5 @@ rem # rem ######################################################################## rem # Perform the operation requested -ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIRats\lib\CasaSvcSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 +ATS_JAVA_HOME\bin\java -jar ATS_INSTALL_DIR\bin\CasaSvcSettingsEditor.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/CASA-auth-token/server-java/Svc/templates/windows/jaas.conf b/CASA-auth-token/server-java/Svc/templates/windows/jaas.conf new file mode 100644 index 00000000..87cbc37a --- /dev/null +++ b/CASA-auth-token/server-java/Svc/templates/windows/jaas.conf @@ -0,0 +1,10 @@ +other { +com.sun.security.auth.module.Krb5LoginModule required + useTicketCache=true + ticketCache="ATS_INSTALL_DIR\\catalinabase\\temp\\ticket.cache" + useKeyTab=true + principal="host/HOSTNAME" + doNotPrompt=true + storeKey=true + debug=true; +}; diff --git a/CASA-auth-token/server-java/Svc/templates/windows/log4j.properties b/CASA-auth-token/server-java/Svc/templates/windows/log4j.properties index 1e0c1aac..19d1c40e 100644 --- a/CASA-auth-token/server-java/Svc/templates/windows/log4j.properties +++ b/CASA-auth-token/server-java/Svc/templates/windows/log4j.properties @@ -18,7 +18,7 @@ log4j.rootLogger=warn, DefaultAppender # DefaultAppender configuration. # log4j.appender.DefaultAppender=org.apache.log4j.RollingFileAppender -log4j.appender.DefaultAppender.File=ATS_INSTALL_DIRats\\catalinabase\\logs\\ats.log +log4j.appender.DefaultAppender.File=ATS_INSTALL_DIR\\catalinabase\\logs\\ats.log log4j.appender.DefaultAppender.MaxFileSize=300KB log4j.appender.DefaultAppender.MaxBackupIndex=2 log4j.appender.DefaultAppender.layout=org.apache.log4j.PatternLayout @@ -34,7 +34,7 @@ log4j.additivity.ATS_Trace=false # TraceAppender configuration. # log4j.appender.TraceAppender=org.apache.log4j.RollingFileAppender -log4j.appender.TraceAppender.File=ATS_INSTALL_DIRats\\catalinabase\\logs\\ats.trace +log4j.appender.TraceAppender.File=ATS_INSTALL_DIR\\catalinabase\\logs\\ats.trace log4j.appender.TraceAppender.MaxFileSize=300KB log4j.appender.TraceAppender.MaxBackupIndex=2 log4j.appender.TraceAppender.layout=org.apache.log4j.PatternLayout diff --git a/CASA-auth-token/server-java/Svc/tomcat5/conf/windows/server-sun.xml b/CASA-auth-token/server-java/Svc/tomcat5/conf/windows/server-sun.xml index 858ce792..dc8cbcb9 100644 --- a/CASA-auth-token/server-java/Svc/tomcat5/conf/windows/server-sun.xml +++ b/CASA-auth-token/server-java/Svc/tomcat5/conf/windows/server-sun.xml @@ -90,7 +90,7 @@ enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" - keystoreFile="ATS_INSTALL_DIRats\etc\keys\server\jks-store" + keystoreFile="ATS_INSTALL_DIR\etc\keys\server\jks-store" keystorePass="secret" algorithm="SunX509" /> diff --git a/CASA-auth-token/server-java/Svc/windows/casa_crypto.properties b/CASA-auth-token/server-java/Svc/windows/casa_crypto.properties index 1bb27fb3..2e10ed52 100644 --- a/CASA-auth-token/server-java/Svc/windows/casa_crypto.properties +++ b/CASA-auth-token/server-java/Svc/windows/casa_crypto.properties @@ -2,4 +2,4 @@ com.novell.casa.authtoksvc.crypto.keystore.type=jks com.novell.casa.authtoksvc.crypto.keystore.password=secret com.novell.casa.authtoksvc.crypto.keystore.alias=signingKey com.novell.casa.authtoksvc.crypto.alias.password=secret -com.novell.casa.authtoksvc.crypto.file=ATS_INSTALL_DIRats\etc\keys\server\jks-store +com.novell.casa.authtoksvc.crypto.file=ATS_INSTALL_DIR//etc//keys//server//jks-store diff --git a/CASA-auth-token/server-java/configure.in b/CASA-auth-token/server-java/configure.in index 01a5c8b7..d17b0dbe 100644 --- a/CASA-auth-token/server-java/configure.in +++ b/CASA-auth-token/server-java/configure.in @@ -267,15 +267,9 @@ package/linux/Makefile package/linux/CASA_auth_token_svc.spec package/linux/CASA_auth_token_svc_4zen.spec package/windows/Makefile -package/windows/ClientKeystoreSetup/Makefile -package/windows/CommandLauncher/Makefile -package/windows/DeleteFile/Makefile -package/windows/InitConfigFile/Makefile -package/windows/MungeCryptoPropertiesFilePath/Makefile -package/windows/ServerKeystoreSetup/Makefile -package/windows/SetupAsWindowsService/Makefile -package/windows/ShutdownWindowsService/Makefile -package/windows/UpdateWarFile/Makefile +package/windows/AtsConfigurator/Makefile +package/windows/AtsConfigurator/src/Makefile +package/windows/AtsConfigurator/manifest/Makefile package/windows/server-java_msi/Makefile Svc/Makefile Svc/external/Makefile diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/Makefile.am b/CASA-auth-token/server-java/package/windows/AtsConfigurator/Makefile.am new file mode 100644 index 00000000..73754779 --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/Makefile.am @@ -0,0 +1,86 @@ +####################################################################### +# +# Copyright (C) 2004 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# Author: Juan Carlos Luciani +# +####################################################################### + +SUBDIRS = src manifest + +DIST_SUBDIRS = src manifest + +EXTRA_DIST = + +ROOT = ../../.. +LIB = lib + +LIBDIR = $(ROOT)/$(LIB) +MANIFEST_DIR = manifest +MANIFEST_FILE_NAME = AtsConfigurator.txt + +JAVAC= javac + +MODULE_NAME = AtsConfigurator +MODULE_EXT = jar + +JAVAFILES = src/AtsConfigurator.java \ + src/Configure.java \ + src/Unconfigure.java + +BUILDDIR = build + +CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) + +LIBS = +CLASSPATH = + +CUR_DIR := $(shell pwd) + +all: $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT) + +$(BUILDDIR)/%.class: %.java + @echo [======== Compiling $@ ========] + $(JAVAC) -g -sourcepath src -classpath "$(CLASSPATH)" -d $(BUILDDIR)/classes $< + +$(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT): $(BUILDDIR) $(CLASSES) + @echo [======== Jarring $@ ========] + jar cvmf $(MANIFEST_DIR)/$(MANIFEST_FILE_NAME) $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT) -C $(BUILDDIR)/classes . + cp $(BUILDDIR)/$(MODULE_NAME).$(MODULE_EXT) $(LIBDIR)/java/ + +$(BUILDDIR): + [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) + [ -d $(BUILDDIR)/classes ] || mkdir -p $(BUILDDIR)/classes + [ -d $(LIBDIR) ] || mkdir -p $(LIBDIR) + [ -d $(LIBDIR)/java ] || mkdir -p $(LIBDIR)/java + +install-exec-local: + +uninstall-local: + +#installcheck-local: install + +clean-local: + if [ -d $(BUILDDIR) ]; then rm -rf $(BUILDDIR); fi + if [ -f $(LIBDIR)/java/$(MODULE_NAME).$(MODULE_EXT) ]; then rm -f $(LIBDIR)/java/$(MODULE_NAME).$(MODULE_EXT); fi + +distclean-local: + +maintainer-clean-local: + rm -f Makefile.in + rm -f Makefile + diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/AtsConfigurator.txt b/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/AtsConfigurator.txt new file mode 100644 index 00000000..e468d180 --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/AtsConfigurator.txt @@ -0,0 +1,2 @@ +Main-Class: AtsConfigurator + diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/Makefile.am b/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/Makefile.am new file mode 100644 index 00000000..46a9e10e --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/manifest/Makefile.am @@ -0,0 +1,35 @@ +####################################################################### +# +# Copyright (C) 2006 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# Author: Juan Carlos Luciani +# +####################################################################### + +SUBDIRS = + +DIST_SUBDIRS = + +EXTRA_DIST = AtsConfigurator.txt + +.PHONY: package package-clean package-install package-uninstall +package package-clean package-install package-uninstall: + $(MAKE) -C $(TARGET_OS) $@ + +maintainer-clean-local: + rm -f Makefile.in + diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/AtsConfigurator.java b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/AtsConfigurator.java new file mode 100644 index 00000000..94a1eecd --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/AtsConfigurator.java @@ -0,0 +1,575 @@ +/*********************************************************************** + * + * Copyright (C) 2006 Novell, Inc. All Rights Reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; version 2.1 + * of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, Novell, Inc. + * + * To contact Novell about this file by physical or electronic mail, + * you may find current contact information at www.novell.com. + * + * Author: Juan Carlos Luciani + * + ***********************************************************************/ + +import java.util.Properties; +import java.util.Enumeration; +import java.io.*; + +/** + * + * Class for configuring and unconfiguring an ATS under windows. + * + */ +public final class AtsConfigurator +{ + private static final String usage = + "usage: AtsConfigurator -op -file propertiesFilePath [-logfolder logFolderPath]\n\n" + + " where:\n" + + " -op - Corresponds to one of the following operations:\n" + + " -c - Configure the ATS installation.\n" + + " -u - Unconfigure the ATS installation.\n" + + " -file - Path to the properties file\n" + + " -logfolder - Path to the log folder\n" + + " The following properties must be present in the file:\n" + + " ATS_INSTALL_DIR - The location of the ATS Install Directory.\n" + + " COMPUTERNAME - The computer name.\n" + + " ATS_JAVA_HOME - Java home.\n" + + " TOMCAT_HOME - Tomcat install base directory.\n" + + " HOSTNAME - Name of the host.\n" + + " TOMCAT5 - Location of the tomcat5 executable.\n"; + + // Error codes + final static int ERROR_NO_ERROR = 0; + final static int ERROR_EXEC_FAILED = -1; + final static int ERROR_INVALID_ARGUMENT = -2; + final static int ERROR_MISSING_INSTALL_DIR = -4; + final static int ERROR_INSTALL_DIR_NOT_A_DIR = -5; + final static int ERROR_MISSING_PROPERTIES_FILE = -7; + final static int ERROR_UNABLE_TO_READ_PROPERTIES = -8; + final static int ERROR_REQUIRED_PROPERTY_MISSING = -11; + final static int ERROR_EXEC_INTERRUPTED = -12; + final static int ERROR_IO_EXCEPTION = -13; + final static int ERROR_EXCEPTION = -14; + final static int ERROR_UNABLE_TO_OPEN_TEMPLATE = -15; + final static int ERROR_FILEWRITER_CREATE_FAILED = -16; + final static int ERROR_OUTPUT_COPY_FAILED = -17; + final static int ERROR_JAR_COPY_FAILED = -18; + final static int ERROR_ADD_FILE_TO_JAR_FAILED = -19; + final static int ERROR_WAR_TEMPLATE_FILE_MISSING = -20; + final static int ERROR_NEW_JAR_CANNOT_BE_REPLACED = -21; + final static int ERROR_CREATE_WAR_FOS_FAILED = -22; + final static int ERROR_OPEN_JAR_TEMPLATE_FAILED = -23; + final static int ERROR_JOS_FLUSH_FAILED = -24; + final static int ERROR_JOS_CLOSE_FAILED = -25; + final static int ERROR_FOS_CLOSE_FAILED = -26; + final static int ERROR_JFTEMPLATE_CLOSE_FAILED = -27; + + // Required properties + final static String INSTALL_DIR_PROPERTY = "ATS_INSTALL_DIR"; + final static String COMPUTERNAME_PROPERTY = "COMPUTERNAME"; + final static String TOMCAT_HOME_PROPERTY = "TOMCAT_HOME"; + final static String JAVA_HOME_PROPERTY = "ATS_JAVA_HOME"; + final static String HOSTNAME_PROPERTY = "HOSTNAME"; + + final static String[] m_requiredProperties = { + INSTALL_DIR_PROPERTY, + COMPUTERNAME_PROPERTY, + TOMCAT_HOME_PROPERTY, + JAVA_HOME_PROPERTY, + HOSTNAME_PROPERTY}; + + // Other constants + final static String LOG_FILE_NAME = "AtsConfigurator.log"; + + // Configured properties + static Properties m_properties = null; + + // InstallLog variables + static String m_logFolderPath = "\\temp"; + static File m_logFile = null; + static FileWriter m_logFileWriter = null; + + /** + * Invoke external command. + * + * @param commandArray Array of command parameters. + * @return Return code. + */ + static int invokeExternalCommand(String[] commandArray) + { + int rc; + + log("AtsConfigurator.invokeExternalCommand()- Start"); + + try + { + Process p = Runtime.getRuntime().exec(commandArray); + try + { + int r = p.waitFor(); + if (r == 0) + { + rc = ERROR_NO_ERROR; + } + else + { + log("Command " + commandArray[0] + " returned status: " + r); + rc = ERROR_EXEC_FAILED; + } + } + catch (InterruptedException ie) + { + rc = ERROR_EXEC_INTERRUPTED; + } + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_EXEC_FAILED; + } + + log("AtsConfigurator.invokeExternalCommand()- End, rc= ", rc); + + return rc; + } + + /** + * Try to fill in missing properties from system properties. + */ + static void tryToFillInMissingProperties() + { + log("AtsConfigurator.tryToFillInMissingProperties()- Start"); + + for (int i = 0; i < m_requiredProperties.length; i++) + { + String propertyKey = m_requiredProperties[i]; + if (!m_properties.containsKey(propertyKey)) + { + AtsConfigurator.log("Trying to fill in property: " + propertyKey); + + String propertyValue = System.getProperty(propertyKey); + if (propertyValue != null) + { + log(" Filling in property using system property value: " + propertyValue); + m_properties.put(propertyKey, propertyValue); + } + else + { + log(" Unable to fill in property " + propertyKey); + } + } + } + + log("AtsConfigurator.tryToFillInMissingProperties()- End"); + } + + /** + * Verify that the properties required have been specified. + * + * @return Return code. + */ + static int verifyRequiredPropertiesSpecified() + { + int rc = ERROR_NO_ERROR; + + log("AtsConfigurator.verifyRequiredPropertiesSpecified()- Start"); + + for (int i = 0; i < m_requiredProperties.length; i++) + { + if (!m_properties.containsKey(m_requiredProperties[i])) + { + log("Required property " + m_requiredProperties[i] + " missing"); + rc = ERROR_REQUIRED_PROPERTY_MISSING; + break; + } + } + + log("AtsConfigurator.verifyRequiredPropertiesSpecified()- End, rc= ", rc); + + return rc; + } + + /** + * Process properties. + * + * @return Return code. + */ + static int processProperties(String configFilePath) + { + int rc = ERROR_NO_ERROR; + + log("AtsConfigurator.processProperties()- Start"); + + // Obtain configuration properties from config file + InputStream in = null; + try + { + File fileProperties = new File(configFilePath); + + // Make sure the properties file can be found + if (!fileProperties.exists()) + { + rc = ERROR_MISSING_PROPERTIES_FILE; + } + else + { + // Read the properties from the file + in = new FileInputStream(fileProperties); + m_properties = new Properties(); + m_properties.load(in); + } + } + catch (Exception e) + { + rc = ERROR_UNABLE_TO_READ_PROPERTIES; + } + finally + { + try + { + if (in != null) + in.close(); + } + catch (Exception e) + { + // Do nothing + } + } + + // Continue if no errors detected + if (rc == ERROR_NO_ERROR) + { + tryToFillInMissingProperties(); + + // Log the properties obtained + Enumeration e = m_properties.propertyNames(); + while (e.hasMoreElements()) + { + String key = (String) e.nextElement(); + String value = (String) m_properties.get(key); + AtsConfigurator.log("Property " + key + " = " + value); + } + + // Validate that we have the required properties + if (ERROR_NO_ERROR == (rc = verifyRequiredPropertiesSpecified())) + { + // Verify that the install directory specified exists + File fileInstallDir = new File((String) m_properties.get(INSTALL_DIR_PROPERTY)); + + // Make sure the install dir can be found + if (!fileInstallDir.exists()) + { + rc = ERROR_MISSING_INSTALL_DIR; + } + else + { + // Make sure the install dir is a directory + if (!fileInstallDir.isDirectory()) + { + rc = ERROR_INSTALL_DIR_NOT_A_DIR; + } + } + } + } + + log("AtsConfigurator.processProperties()- End, rc= ", rc); + + return rc; + } + + /** + * Log error code. + * + * @param err Error code. + */ + static void log(int err) + { + log(null, err); + } + + /** + * Log string with error code. + * + * @param s Log string. + * @param err Error code. + */ + static void log(String s, int err) + { + String rcMessage; + + switch (err) + { + case ERROR_NO_ERROR: + rcMessage = "No error"; + break; + case ERROR_EXEC_FAILED: + rcMessage = "Execute command failed"; + break; + case ERROR_MISSING_INSTALL_DIR: + rcMessage = "Missing install dir"; + break; + case ERROR_INSTALL_DIR_NOT_A_DIR: + rcMessage = "Install dir is not a dir"; + break; + case ERROR_MISSING_PROPERTIES_FILE: + rcMessage = "Property file not found"; + break; + case ERROR_UNABLE_TO_READ_PROPERTIES: + rcMessage = "Unable to read property file"; + break; + case ERROR_REQUIRED_PROPERTY_MISSING: + rcMessage = "Required property is missing"; + break; + case ERROR_EXEC_INTERRUPTED: + rcMessage = "Execution interrupted"; + break; + case ERROR_UNABLE_TO_OPEN_TEMPLATE: + rcMessage = "Unable to open template file"; + break; + case ERROR_FILEWRITER_CREATE_FAILED: + rcMessage = "FileWriter create failed"; + break; + case ERROR_OUTPUT_COPY_FAILED: + rcMessage = "Output copy failed"; + break; + case ERROR_IO_EXCEPTION: + rcMessage = "IO Exception"; + break; + case ERROR_JAR_COPY_FAILED: + rcMessage = "Failed to copy Jar"; + break; + case ERROR_ADD_FILE_TO_JAR_FAILED: + rcMessage = "Failed to add file to Jar"; + break; + case ERROR_WAR_TEMPLATE_FILE_MISSING: + rcMessage = "Template War file missing"; + break; + case ERROR_NEW_JAR_CANNOT_BE_REPLACED: + rcMessage = "Cannot create new Jar"; + break; + case ERROR_CREATE_WAR_FOS_FAILED: + rcMessage = "Failed to create War File Output Stream"; + break; + case ERROR_OPEN_JAR_TEMPLATE_FAILED: + rcMessage = "Failed to open Template War file"; + break; + case ERROR_JOS_FLUSH_FAILED: + rcMessage = "Jar Output Stream Flush failed"; + break; + case ERROR_JOS_CLOSE_FAILED: + rcMessage = "Jar Output Stream Close failed"; + break; + case ERROR_FOS_CLOSE_FAILED: + rcMessage = "File Output Stream Close failed"; + break; + case ERROR_JFTEMPLATE_CLOSE_FAILED: + rcMessage = "War Template Input Stream Close failed"; + break; + case ERROR_EXCEPTION: + rcMessage = "Exception"; + break; + default: + rcMessage = "Unknown error"; + break; + } + + if (s != null) + log(s + rcMessage); + else + log(rcMessage); + } + + /** + * Log string. + * + * @param s Log string. + */ + static void log(String s) + { + try + { + if (m_logFileWriter != null) + m_logFileWriter.write(s + "\r\n"); + } + catch (IOException ioe) + { + // Do nothing + } + } + + /** + * Applications Entry Point. + * + * @param args Arguments. + */ + public static void main(String[] args) + { + String op = null; + boolean opPerformed = false; + boolean argumentsError = false; + String filePath = null; + int rc = ERROR_NO_ERROR; + + try + { + // Process the command line arguments + for (int i = 0; i < args.length; i++) + { + // Proceed based on the command + if (args[i].equalsIgnoreCase("-file")) + { + // The next argument should contain the filepath + if (args.length > (i + 1)) + { + filePath = args[i + 1]; + i++; + } + else + { + argumentsError = true; + break; + } + } + else if (args[i].equalsIgnoreCase("-logfolder")) + { + // The next argument should contain the path to the log folder + if (args.length > (i + 1)) + { + // Overwrite the default + m_logFolderPath = args[i + 1]; + i++; + } + else + { + argumentsError = true; + break; + } + } + else if (args[i].equalsIgnoreCase("-c")) + { + // List operation requested + if (op == null) + { + op = "configure"; + } + else + { + argumentsError = true; + break; + } + } + else if (args[i].equalsIgnoreCase("-u")) + { + // List operation requested + if (op == null) + { + op = "unconfigure"; + } + else + { + argumentsError = true; + break; + } + } + } + + // Get ready to log + File logFolder = new File(m_logFolderPath); + if (!logFolder.exists()) + { + // Create the log folder + logFolder.mkdirs(); + m_logFile = new File(logFolder.getAbsolutePath() + "\\" + LOG_FILE_NAME); + m_logFileWriter = new FileWriter(m_logFile); + } + else + { + if (logFolder.isDirectory()) + { + m_logFile = new File(logFolder.getAbsolutePath() + "\\" + LOG_FILE_NAME); + m_logFileWriter = new FileWriter(m_logFile); + } + } + + // Proceed based on the specified parameters + if (argumentsError == false) + { + // Verify that the necessary input parameters where specified + if (filePath != null && op != null) + { + // Process the property file + if (ERROR_NO_ERROR == (rc = processProperties(filePath))) + { + // Proceed based on the operation requested + if (op.compareTo("configure") == 0) + { + Configure c = new Configure(m_properties); + rc = c.m_rc; + } + else if (op.compareTo("unconfigure") == 0) + { + Unconfigure u = new Unconfigure(m_properties); + rc = u.m_rc; + } + else + { + log("Unsupported operation: " + op); + argumentsError = true; + } + } + else + { + argumentsError = true; + } + } + else + { + argumentsError = true; + log("Not all required parameters specified"); + } + } + } + catch (Exception e) + { + rc = ERROR_EXCEPTION; + log("Exception" + e.getMessage()); + } + finally + { + // Close the log file writer if necessary + if (m_logFileWriter != null) + { + try + { + m_logFileWriter.flush(); + m_logFileWriter.close(); + } + catch (Exception e) + { + // Do nothing + } + } + } + + // Display the usage string if we encountered an error with the + // command line arguments. + if (argumentsError) + { + System.out.print(usage); + rc = ERROR_INVALID_ARGUMENT; + } + + // Set the exit code + System.exit(rc); + } +} diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Configure.java b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Configure.java new file mode 100644 index 00000000..ccb7e363 --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Configure.java @@ -0,0 +1,795 @@ +/*********************************************************************** + * + * Copyright (C) 2006 Novell, Inc. All Rights Reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; version 2.1 + * of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, Novell, Inc. + * + * To contact Novell about this file by physical or electronic mail, + * you may find current contact information at www.novell.com. + * + * Authors: Juan Carlos Luciani + * Greg Richardson + * + ***********************************************************************/ + +import java.io.*; +import java.util.*; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; +import java.util.zip.ZipFile; + +/** + * Configure Class. + *

+ * This class readies the Authentication Token Service after it has been + * installed. + */ +public class Configure +{ + // Other constants + final static String SERVER_KEY_STORE_RELATIVE_PATH = "\\etc\\keys\\server\\jks-store"; + final static String CLIENT_KEY_STORE_RELATIVE_PATH = "\\etc\\keys\\client\\jks-store"; + final static String SIGNING_CERT_RELATIVE_PATH = "\\etc\\keys\\casaatsdSigningCert"; + + // Configured properties + Properties m_properties; + + // Completion code + int m_rc; + + // Template replace strings + String[] m_rgsSearchFor; + String[] m_rgsReplaceWith; + + /** + * Constructor. + * + * @param properties Configuration properties. + */ + Configure(Properties properties) + { + m_rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure()- Start"); + + try + { + // Save the properties + m_properties = properties; + + // Process the properties + if (AtsConfigurator.ERROR_NO_ERROR == (m_rc = processProperties())) + { + // Create the server keystore + if (AtsConfigurator.ERROR_NO_ERROR == (m_rc = createServerKeystore())) + { + // Create the client keystore + if (AtsConfigurator.ERROR_NO_ERROR == (m_rc = createClientKeystore())) + { + // Setup the relocatable files + if (AtsConfigurator.ERROR_NO_ERROR == (m_rc = setupRelocatableFiles())) + { + // Setup the War file + if (AtsConfigurator.ERROR_NO_ERROR == (m_rc = createWarFileFromTemplate())) + { + // Create the ATS Service + m_rc = createATSService(); + } + } + } + } + } + } + catch (Exception e) + { + m_rc = AtsConfigurator.ERROR_EXCEPTION; + AtsConfigurator.log("Exception" + e.getMessage()); + } + + AtsConfigurator.log("Configure()- End, rc= ", m_rc); + } + + /** + * Process properties. + * + * @return Return code. + */ + int processProperties() + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.processProperties()- Start"); + + // Setup replace template key/values arrays + int i = 0; + Enumeration e = m_properties.propertyNames(); + + m_rgsSearchFor = new String[m_properties.size()]; + m_rgsReplaceWith = new String[m_properties.size()]; + + while (e.hasMoreElements()) + { + String key = (String) e.nextElement(); + String value = (String) m_properties.get(key); + m_rgsSearchFor[i] = key; + m_rgsReplaceWith[i] = value; + i++; + } + + AtsConfigurator.log("Configure.processProperties()- End, rc= ", rc); + + return rc; + } + + /** + * Check if the keystore already exists + * + * @param keyStoreRelPath Relative path to the keystore + * @return true if the keystore exists otherwise false. + */ + boolean keyStoreAlreadyExists(String keyStoreRelPath) + { + boolean retValue = false; + + AtsConfigurator.log("Configure.keyStoreAlreadyExists()- Start, relPath = " + keyStoreRelPath); + + File fileKeystore = new File(((String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY)) + keyStoreRelPath); + File fileParent = fileKeystore.getParentFile(); + String[] rgChildren = fileParent.list(); + if (null != rgChildren) + { + for (int i = 0; i < rgChildren.length; i++) + { + AtsConfigurator.log("child " + i + " = " + rgChildren[i]); + if ("jks-store".equals(rgChildren[i])) + { + retValue = true; + } + } + } + + AtsConfigurator.log("Configure.keyStoreAlreadyExists()- End, retValue = " + retValue ); + + return retValue; + } + + /** + * Create the server keystore. + * + * @return Return code. + */ + int createServerKeystore() + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.createServerKeystore()- Start"); + + // Proceed only if the server keystore has not been created + if (!keyStoreAlreadyExists(SERVER_KEY_STORE_RELATIVE_PATH)) + { + String keytoolPath = m_properties.get(AtsConfigurator.JAVA_HOME_PROPERTY) + "\\bin\\keytool"; + String installDir = (String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY); + + // Allocate and setup commandArray to create signing key + String[] commandArray = new String[14]; + commandArray[0] = keytoolPath; + commandArray[1] = "-genkey"; + commandArray[2] = "-alias"; commandArray[3] = "signingKey"; + commandArray[4] = "-keypass"; commandArray[5] = "secret"; + commandArray[6] = "-keystore"; commandArray[7] = installDir + SERVER_KEY_STORE_RELATIVE_PATH; + commandArray[8] = "-storepass"; commandArray[9] = "secret"; + commandArray[10] = "-dname"; commandArray[11] = "cn=casaatsd@" + (String) m_properties.get("COMPUTERNAME"); + commandArray[12] = "-validity"; commandArray[13] = "3600"; + + // Create the signing key + if (AtsConfigurator.ERROR_NO_ERROR == (rc =AtsConfigurator.invokeExternalCommand(commandArray))) + { + // Allocate and setup commandArray to export the signing certificate + commandArray = new String[12]; + commandArray[0] = keytoolPath; + commandArray[1] = "-export"; + commandArray[2] = "-alias"; commandArray[3] = "signingKey"; + commandArray[4] = "-keypass"; commandArray[5] = "secret"; + commandArray[6] = "-keystore"; commandArray[7] = installDir + SERVER_KEY_STORE_RELATIVE_PATH; + commandArray[8] = "-storepass"; commandArray[9] = "secret"; + commandArray[10] = "-file"; commandArray[11] = installDir + SIGNING_CERT_RELATIVE_PATH; + + // Export self-signed certificate for the signing key + if (AtsConfigurator.ERROR_NO_ERROR == (rc = AtsConfigurator.invokeExternalCommand(commandArray))) + { + // Allocate and setup commandArray to create key for Tomcat to do SSL communications + commandArray = new String[14]; + commandArray[0] = keytoolPath; + commandArray[1] = "-genkey"; + commandArray[2] = "-alias"; commandArray[3] = "tomcat"; + commandArray[4] = "-keypass"; commandArray[5] = "secret"; + commandArray[6] = "-keystore"; commandArray[7] = installDir + SERVER_KEY_STORE_RELATIVE_PATH; + commandArray[8] = "-storepass"; commandArray[9] = "secret"; + commandArray[10] = "-dname"; commandArray[11] = "cn=" + (String) m_properties.get("COMPUTERNAME"); + commandArray[12] = "-keyalg"; commandArray[13] = "RSA"; + + // Create a key for Tomcat to do SSL communications + rc = AtsConfigurator.invokeExternalCommand(commandArray); + } + } + } + + AtsConfigurator.log("Configure.createServerKeystore()- End, rc= ", rc); + + return rc; + } + + /** + * Create the client keystore. + * + * @return Return code. + */ + int createClientKeystore() + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.createClientKeystore()- Start"); + + // Proceed only if the client keystore has not been created + if (!keyStoreAlreadyExists(CLIENT_KEY_STORE_RELATIVE_PATH)) + { + String keytoolPath = m_properties.get(AtsConfigurator.JAVA_HOME_PROPERTY) + "\\bin\\keytool"; + String installDir = (String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY); + + // Allocate and setup commandArray to export the signing certificate + String[] commandArray = new String[13]; + commandArray[0] = keytoolPath; + commandArray[1] = "-import"; + commandArray[2] = "-noprompt"; + commandArray[3] = "-alias"; commandArray[4] = "signingCert"; + commandArray[5] = "-keypass"; commandArray[6] = "secret"; + commandArray[7] = "-keystore"; commandArray[8] = installDir + CLIENT_KEY_STORE_RELATIVE_PATH; + commandArray[9] = "-storepass"; commandArray[10] = "secret"; + commandArray[11] = "-file"; commandArray[12] = installDir + SIGNING_CERT_RELATIVE_PATH; + + // Import the servers certificate in the client keystore + rc = AtsConfigurator.invokeExternalCommand(commandArray); + } + + AtsConfigurator.log("Configure.createClientKeystore()- End, rc= ", rc); + + return rc; + } + + /** + * Create file from template. + * + * @param fileTemplate Template file. + * @param fileOutput Output file path. + * @param escapePathCharsInReplaceString Escape Windows Path Chars in Replace String before using. + * @param useUnixPathCharsInReplaceString Replace Windows Path Chars with "//" in Replace String before using. + * @return Return code. + */ + int createFileFromTemplate(File fileTemplate, File fileOutput, boolean escapePathCharsInReplaceString, boolean useUnixPathCharsInReplaceString) + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + LineNumberReader lnr = null; + FileWriter fwOutput = null; + + AtsConfigurator.log("Configure.createFileFromTemplate()- Start, template = " + fileTemplate); + + try + { + // Open the files + lnr = new LineNumberReader(new FileReader(fileTemplate)); + try + { + fwOutput = new FileWriter(fileOutput); + try + { + // For each line of text in the template file... + String sLineTemplate; + while (null != (sLineTemplate = lnr.readLine())) + { + String sLineOutput = sLineTemplate; + + // For each term to be replaced... + for (int i = 0; i < m_rgsSearchFor.length; i++) + { + // Replace all instances of the term on the line + int iSearchFor; + while (-1 != (iSearchFor = sLineOutput.indexOf(m_rgsSearchFor[i]))) + { + // Check if we must escape path characters in replace string + String replaceString; + if (useUnixPathCharsInReplaceString) + { + replaceString = m_rgsReplaceWith[i].replace("\\", "//"); + } + else + { + if (escapePathCharsInReplaceString) + replaceString = m_rgsReplaceWith[i].replace("\\", "\\\\"); + else + replaceString = m_rgsReplaceWith[i]; + } + + AtsConfigurator.log("replacing " + m_rgsSearchFor[i] + " at position " + iSearchFor + " with " + replaceString); + sLineOutput = sLineOutput.substring(0, iSearchFor) + replaceString + + sLineOutput.substring(iSearchFor + m_rgsSearchFor[i].length()); + } + } + try + { + fwOutput.write(sLineOutput + "\r\n"); + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_EXCEPTION; + } + } + + // Clean up + fwOutput.flush(); + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_OUTPUT_COPY_FAILED; + } + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_FILEWRITER_CREATE_FAILED; + } + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_UNABLE_TO_OPEN_TEMPLATE; + } + finally + { + try + { + if (lnr != null) + lnr.close(); + + if (fwOutput != null) + fwOutput.close(); + } + catch (Exception e) + { + // Do nothing + } + } + + AtsConfigurator.log("Configure.createFileFromTemplate()- End, rc= ", rc); + + return rc; + } + + /** + * Setup all of the needed relocatable files. + * + * @return Return code. + */ + int setupRelocatableFiles() + { + int rc; + + AtsConfigurator.log("Configure.setupRelocatableFiles()- Start"); + + String installDir = (String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY); + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\server-sun.xml"), + new File(installDir + "\\catalinabase\\conf\\server.xml"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\startup.bat"), + new File(installDir + "\\bin\\startup.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\shutdown.bat"), + new File(installDir + "\\bin\\shutdown.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\CasaAuthPolicyEditor.bat"), + new File(installDir + "\\bin\\CasaAuthPolicyEditor.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\CasaAuthTokenSettingsEditor.bat"), + new File(installDir + "\\bin\\CasaAuthTokenSettingsEditor.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\CasaIdenTokenSettingsEditor.bat"), + new File(installDir + "\\bin\\CasaIdenTokenSettingsEditor.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\CasaSvcSettingsEditor.bat"), + new File(installDir + "\\bin\\CasaSvcSettingsEditor.bat"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\svc.settings"), + new File(installDir + "\\etc\\svc\\svc.settings"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\jaas.conf"), + new File(installDir + "\\etc\\svc\\jaas.conf"), + false, false))) + if (AtsConfigurator.ERROR_NO_ERROR == (rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\casa_crypto.properties"), + new File(installDir + "\\etc\\svc\\casa_crypto.properties"), + false, true))) + rc = createFileFromTemplate(new File(installDir + "\\etc\\svc\\templates\\log4j.properties"), + new File(installDir + "\\etc\\svc\\log4j.properties"), + true, false); + + AtsConfigurator.log("Configure.setupRelocatableFiles()- End, rc= ", rc); + + return rc; + } + + /** + * Move files from Jar to Jar. + * + * @param josDst Destination Jar Output stream. + * @param jfSrc Source Jar. + * @return Return code. + */ + int moveFilesFromJarToJar(ZipOutputStream josDst, ZipFile jfSrc) + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.moveFilesFromJarToJar()- Start"); + + try + { + Enumeration entries = jfSrc.entries(); + while (entries.hasMoreElements()) + { + ZipEntry jeLoop = (ZipEntry)entries.nextElement(); + + // Skip WEB-INF/classes/cypto.properties + if (jeLoop.getName().equalsIgnoreCase("WEB-INF/classes/casa_crypto.properties")) + { + AtsConfigurator.log("skipping: " + "WEB-INF/classes/casa_crypto.properties"); + continue; + } + + // Move the rest of the files over + else + { + AtsConfigurator.log("Transferring jar file: " + jeLoop.getName()); + + // Create the input stream + InputStream isLoop = jfSrc.getInputStream(jeLoop); + + // Set up the output stream + ZipEntry zeIndex = new ZipEntry(jeLoop.getName()); + josDst.putNextEntry( zeIndex); + + // Transfer the file contents + int bRead; + byte [] b = new byte[4096]; + while (-1 != (bRead = isLoop.read(b))) + { + josDst.write(b, 0, bRead); + } + + // all done + josDst.closeEntry(); + isLoop.close(); + } + } + } + catch (Exception e) + { + rc = AtsConfigurator.ERROR_JAR_COPY_FAILED; + } + + AtsConfigurator.log("Configure.moveFilesFromJarToJar()- End, rc= ", rc); + + return rc; + } + + /** + * Add file to Jar. + * + * @param sFilename Path to file. + * @param sName Zip entry name. + * @param josJarNew Jar output stream. + * @return Return code. + */ + int addFileToJar(String sFilename, String sName, ZipOutputStream josJarNew) + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.addFileToJar()- Start"); + + try + { + // Create the input stream + FileInputStream fis = new FileInputStream(sFilename); + + // Set up the output stream + ZipEntry je = new ZipEntry(sName); + josJarNew.putNextEntry(je); + + // Tansfer the contents of the file + int bRead; + byte [] b = new byte[4096]; + while (-1 != (bRead = fis.read(b))) + { + josJarNew.write(b, 0, bRead); + } + + // All done + fis.close(); + josJarNew.closeEntry(); + } + catch (Exception e) + { + AtsConfigurator.log(e.toString()); + rc = AtsConfigurator.ERROR_ADD_FILE_TO_JAR_FAILED; + } + + AtsConfigurator.log("Configure.addFileToJar()- End, rc= ", rc); + + return rc; + } + + /** + * Create War file from template. + * + * @return Return code. + */ + int createWarFileFromTemplate() + { + String sWarTemplate = ((String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY)) + "\\etc\\svc\\templates\\CasaAuthTokenSvc.war"; + String sWarNew = ((String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY)) + "\\catalinabase\\webapps\\CasaAuthTokenSvc.war"; + File fileWarTemplate = new File(sWarTemplate); + File fileWarNew = new File(sWarNew); + FileOutputStream fosWarNew = null; + ZipOutputStream josWarNew = null; + ZipFile jfTemplate = null; + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.createWarFileFromTemplate()- Start"); + + // Ensure that the war template exists + AtsConfigurator.log("looking for war template: " + sWarTemplate); + if (!fileWarTemplate.exists()) + { + rc = AtsConfigurator.ERROR_WAR_TEMPLATE_FILE_MISSING; + } + + if (rc == AtsConfigurator.ERROR_NO_ERROR) + { + // Ensure that the new jar name does not exist + if (fileWarNew.exists()) + { + AtsConfigurator.log("war file already exists: " + sWarNew); + if (!fileWarNew.delete()) + { + AtsConfigurator.log("could not delete war file: " + sWarNew); + rc = AtsConfigurator.ERROR_NEW_JAR_CANNOT_BE_REPLACED; + } + } + } + + if (rc == AtsConfigurator.ERROR_NO_ERROR) + { + // Create/open the new jar + try + { + AtsConfigurator.log("create new war file output stream: " + sWarNew); + fosWarNew = new FileOutputStream(fileWarNew); + josWarNew = new ZipOutputStream(fosWarNew); + } + catch (IOException ioe0) + { + AtsConfigurator.log(ioe0.toString()); + rc = AtsConfigurator.ERROR_CREATE_WAR_FOS_FAILED; + } + } + + if (rc == AtsConfigurator.ERROR_NO_ERROR) + { + // Open the old jar + try + { + jfTemplate = new ZipFile(sWarTemplate); + } + catch (IOException ioe1) + { + rc = AtsConfigurator.ERROR_OPEN_JAR_TEMPLATE_FAILED; + } + } + + if (rc == AtsConfigurator.ERROR_NO_ERROR) + { + // Transfer the files + rc = moveFilesFromJarToJar(josWarNew, jfTemplate); + } + + // Add the files + if (rc == AtsConfigurator.ERROR_NO_ERROR) + { + int i; + String [] rgsFilesToAdd = new String[1]; + rgsFilesToAdd[0] = ((String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY)) + "\\etc\\svc\\casa_crypto.properties"; + String [] rgsNames = new String[1]; + rgsNames[0] = "WEB-INF/classes/casa_crypto.properties"; + for (i = 0; i < rgsFilesToAdd.length; i++) + { + AtsConfigurator.log("Adding file: " + rgsFilesToAdd[i] + " with name " + rgsNames[i]); + rc = addFileToJar(rgsFilesToAdd[i], rgsNames[i], josWarNew); + } + } + + // Close up + if (null != josWarNew) + { + try + { + josWarNew.flush(); + } + catch (IOException ioe2) + { + rc = AtsConfigurator.ERROR_JOS_FLUSH_FAILED; + } + try + { + josWarNew.close(); + } + catch (IOException ioe3) + { + rc = AtsConfigurator.ERROR_JOS_CLOSE_FAILED; + } + try + { + fosWarNew.close(); + } + catch (IOException ioe4) + { + rc = AtsConfigurator.ERROR_FOS_CLOSE_FAILED; + } + } + if (null != jfTemplate) + { + try + { + jfTemplate.close(); + } + catch (IOException ioe5) + { + rc = AtsConfigurator.ERROR_JFTEMPLATE_CLOSE_FAILED; + } + } + + AtsConfigurator.log("Configure.createWarFileFromTemplate()- End, rc= ", rc); + + return rc; + } + + /** + * Create ATS Service. + * + * @return Return code. + */ + int createATSService() + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Configure.createATSService()- Start"); + + String installDir = (String) m_properties.get(AtsConfigurator.INSTALL_DIR_PROPERTY); + String sDirCatalinaBase = installDir + "/catalinabase"; + String sDirCatalinaHome = (String) m_properties.get(AtsConfigurator.TOMCAT_HOME_PROPERTY); + String sExe = ((String) m_properties.get(AtsConfigurator.TOMCAT_HOME_PROPERTY)) + "\\bin\\tomcat5.exe"; + String sFileJaasConf = installDir + "\\etc\\svc\\jaas.conf"; + String sDirConfig = installDir + "/etc/svc"; + String sDirJavaHome = (String) m_properties.get(AtsConfigurator.JAVA_HOME_PROPERTY); + String sLogPrefix = "casa-auth-token-svc"; + String sDirLogs = sDirCatalinaBase + "/logs"; + + /* + * Note that in the following code we do not bother to check the return of the invokeExternalCommand + * call. This is because I have found that some versions of tomcat5.exe do not always return success + * even though they should. + */ + String[] commandArray = { + sExe, "//IS//CasaAuthTokenService", "--StartClass", "org.apache.catalina.startup.Bootstrap", "--StopClass", "org.apache.catalina.startup.Bootstrap", "--StartParams", "start", "--StopParams", "stop", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray); + + String[] commandArray1 = { + sExe, "//US//CasaAuthTokenService", "--Startup", "auto", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray1); + + String[] commandArray2 = { + sExe, "//US//CasaAuthTokenService", "--JvmOptions", "\"-Dcatalina.base=" + sDirCatalinaBase + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray2); + + String[] commandArray3 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Dcatalina.home=" + sDirCatalinaHome + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray3); + + String[] commandArray4 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Djava.endorsed.dirs=" + sDirCatalinaHome + "/common/endorsed\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray4); + + String[] commandArray5 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Djava.security.auth.login.config=" + sFileJaasConf + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray5); + + String[] commandArray6 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Dcom.novell.casa.authtoksvc.config=" + sDirConfig + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray6); + + String[] commandArray7 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Dlog4j.configuration=file:" + installDir + "/etc/log4j.properties" + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray7); + + String[] commandArray8 = { + sExe, "//US//CasaAuthTokenService", "++JvmOptions", "\"-Djava.io.tmpdir=" + sDirCatalinaBase+ "/temp\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray8); + + String[] commandArray9 = { + sExe, "//US//CasaAuthTokenService", "--StartMode", "jvm", "--StopMode", "jvm", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray9); + + String[] commandArray10 = { + sExe, "//US//CasaAuthTokenService", "--JvmMs", "128", "--JvmMx", "512", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray10); + + String[] commandArray11 = { + sExe, "//US//CasaAuthTokenService", "--Classpath", "\"" + sDirCatalinaHome + "/bin/bootstrap.jar\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray11); + + String[] commandArray12 = { + sExe, "//US//CasaAuthTokenService", "--Jvm", "\"" + sDirJavaHome + "/jre/bin/server/jvm.dll\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray12); + + String[] commandArray13 = { + sExe, "//US//CasaAuthTokenService", "--LogPath", "\"" + sDirLogs + "\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray13); + + String[] commandArray14 = { + sExe, "//US//CasaAuthTokenService", "--LogPrefix", "\"" + sLogPrefix + "_service.log\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray14); + + String[] commandArray15 = { + sExe, "//US//CasaAuthTokenService", "--StdOutput", "\"" + sDirLogs + File.separator + sLogPrefix + "_stdout.log\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray15); + + String[] commandArray16 = { + sExe, "//US//CasaAuthTokenService", "--StdError", "\"" + sDirLogs + File.separator + sLogPrefix + "_stderr.log\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray16); + + String[] commandArray17 = { + sExe, "//US//CasaAuthTokenService", "--DisplayName", "CasaAuthTokenSvc", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray17); + + String[] commandArray18 = { + sExe, "//US//CasaAuthTokenService", "--Description", "\"Casa Authentication Token Service\"", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcInstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray18); + + AtsConfigurator.log("Configure.createATSService()- End, rc= ", rc); + + return rc; + } +} diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Makefile.am b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Makefile.am new file mode 100644 index 00000000..f84e3035 --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Makefile.am @@ -0,0 +1,40 @@ +####################################################################### +# +# Copyright (C) 2006 Novell, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# Author: Juan Carlos Luciani +# +####################################################################### + +SUBDIRS = + +DIST_SUBDIRS = + +JAVAFILES = AtsConfigurator.java \ + Configure.java \ + Unconfigure.java + + +EXTRA_DIST = $(JAVAFILES) + +.PHONY: package package-clean package-install package-uninstall +package package-clean package-install package-uninstall: + $(MAKE) -C $(TARGET_OS) $@ + +maintainer-clean-local: + rm -f Makefile.in + diff --git a/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Unconfigure.java b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Unconfigure.java new file mode 100644 index 00000000..12fc1ab7 --- /dev/null +++ b/CASA-auth-token/server-java/package/windows/AtsConfigurator/src/Unconfigure.java @@ -0,0 +1,101 @@ +/*********************************************************************** + * + * Copyright (C) 2006 Novell, Inc. All Rights Reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; version 2.1 + * of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, Novell, Inc. + * + * To contact Novell about this file by physical or electronic mail, + * you may find current contact information at www.novell.com. + * + * Authors: Juan Carlos Luciani + * Greg Richardson + * + ***********************************************************************/ + +import java.util.Properties; +import java.io.File; + +/** + * Unconfigure Class. + *

+ * This class readies the Authentication Token Service to be un-installed. + */ +public class Unconfigure +{ + // Configured properties + Properties m_properties; + + // Completion code + int m_rc; + + /** + * Constructor. + * + * @param properties Configuration properties. + */ + Unconfigure(Properties properties) + { + m_rc = AtsConfigurator.ERROR_NO_ERROR; + + AtsConfigurator.log("Unconfigure()- Start"); + + try + { + // Save the properties + m_properties = properties; + + // delete the ATS service + m_rc = deleteATSService(); + } + catch (Exception e) + { + m_rc = AtsConfigurator.ERROR_EXCEPTION; + AtsConfigurator.log("Exception" + e.getMessage()); + } + + AtsConfigurator.log("Unconfigure()- End, rc= ", m_rc); + } + + /** + * Delete ATS Service. + * + * @return Return code. + */ + int deleteATSService() + { + int rc = AtsConfigurator.ERROR_NO_ERROR; + String sExe = ((String) m_properties.get(AtsConfigurator.TOMCAT_HOME_PROPERTY)) + "\\bin\\tomcat5.exe"; + + AtsConfigurator.log("Unconfigure.deleteATSService()- Start"); + + /* + * Note that in the following code we do not bother to check the return of the invokeExternalCommand + * call. This is because I have found that some versions of tomcat5.exe do not always return success + * even though they should. + */ + String[] commandArray = { + sExe, "//SS//CasaAuthTokenService", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcUninstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray); + + String[] commandArray1 = { + sExe, "//DS//CasaAuthTokenService", "--LogPath", AtsConfigurator.m_logFolderPath, "--LogPrefix", "AtsSvcUninstall.log" + }; + AtsConfigurator.invokeExternalCommand(commandArray1); + + AtsConfigurator.log("Unconfigure().deleteATSService- End, rc= ", rc); + + return rc; + } +} diff --git a/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/ClientKeystoreSetup.java b/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/ClientKeystoreSetup.java deleted file mode 100644 index 965cb280..00000000 --- a/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/ClientKeystoreSetup.java +++ /dev/null @@ -1,408 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -public class ClientKeystoreSetup -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_EXEC_FAILED = -1; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -2; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -3; - final static int ERROR_MISSING_INSTALL_DIR = -4; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -5; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -6; - final static int ERROR_MISSING_PROPERTIES_FILE = -7; - final static int ERROR_UNABLE_TO_READ_PROPERTIES = -8; - final static int ERROR_UNKNOWN_PARAM = -9; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -10; - final static int ERROR_REQUIRED_VALUE_MISSING = -11; - final static int ERROR_EXEC_INTERRUPTED = -12; - final static int ERROR_IO_EXCEPTION = -13; - final static int ERROR_EXCEPTION = -14; - - final static String INSTALL_DIR = "installdir="; - final static String PROPERTY_FILE = "propertyfile="; - - String sInstallDir; - Properties properties; - int rc; - - // debug stuff - //File file; - //FileWriter fw; - - public static void main(String[] args) - { - ClientKeystoreSetup p = new ClientKeystoreSetup(args); - System.exit(p.rc); - } - - ClientKeystoreSetup(String[] args) - { - rc = ERROR_NO_ERROR; - - try - { - // DEBUG STUFF - //file = new File("c:\\test4.log"); - //fw = new FileWriter(file); - - log("Here we go again: " + args.length); - for (int i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i] + "\r\n"); - } - // DEBUG STUFF - - // Process the input params - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Make sure we got everything we need - if (ERROR_NO_ERROR == (rc = findRequiredValues())) - { - // Make sure the client keystore has been created - rc = createClientKeystore(); - } - } - - // DEBUG STUFF - log(rc); - //fw.flush(); - //fw.close(); - // DEBUG STUFF - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - File fileProperties = null; - FileInputStream fisProperties = null; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (argsOld.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i] + "\r\n"); - } - - - for (i = 0; i <= iNew; i++) - { - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR)) - { - // Make sure it is more the the param tag - if (args[i].length() <= INSTALL_DIR.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - } - - // is this the properties file param? - else if (args[i].startsWith(PROPERTY_FILE)) - { - // Make sure it is more the the param tag - if (args[i].length() <= PROPERTY_FILE.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sProperties = args[i].substring(PROPERTY_FILE.length()).trim(); - fileProperties = new File(sProperties); - - // Make sure the properties file can be found - if (!fileProperties.exists()) - { - return ERROR_MISSING_PROPERTIES_FILE; - } - - // Read the properties - try - { - fisProperties = new FileInputStream(fileProperties); - properties = new Properties(); - properties.load(fisProperties); - } - catch (IOException ioe) - { - return ERROR_UNABLE_TO_READ_PROPERTIES; - } - } - - // Unknown parameter - else - { - log(ERROR_UNKNOWN_PARAM, args[i]); - return ERROR_UNKNOWN_PARAM; - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - return ERROR_NO_ERROR; - } - - int findRequiredValues() - { - String[] rgsRequired = { - "ATS_JAVA_HOME"}; - int i; - String sValue; - - for (i = 0; i < rgsRequired.length; i++) - { - log("look for required value: " + rgsRequired[i]); - - if (!properties.containsKey(rgsRequired[i])) - { - log("look for required value in envirement: " + rgsRequired[i]); - if (null == (sValue = System.getProperty(rgsRequired[i]))) - { - log("unable to find required value in envirement: " + rgsRequired[i]); - return ERROR_REQUIRED_VALUE_MISSING; - } - log("found required value in envirement: " + rgsRequired[i] + " = " + sValue); - properties.put(rgsRequired[i], sValue); - } - log("found required value: " + rgsRequired[i] + " = " + properties.get(rgsRequired[i])); - } - return ERROR_NO_ERROR; - } - - - int createClientKeystore() - { - int rc; - String sKeytool = properties.get("ATS_JAVA_HOME") + "\\bin\\keytool.exe"; - - log("keytool = " + sKeytool); - - // Do not do anything if the server keystore has already been created - if (keyStoreAlreadyExists()) - { - return ERROR_NO_ERROR; - } - - // Import the servers certificate in the client keystore - rc = invokeCommand(sKeytool + " -import -noprompt -keystore " + - sInstallDir + "ats\\etc\\keys\\client\\jks-store -alias signingCert -storepass secret -keypass secret -file " + - sInstallDir + "ats\\etc\\keys\\casaatsdSigningCert"); - - return rc; - } - - boolean keyStoreAlreadyExists() - { - File fileKeystore = new File(sInstallDir + "ats\\etc\\keys\\client\\jks-store"); - - // Why is this always returning true? exists() also always returns true. - // log("keystore (" + sInstallDir + "ats\\etc\\keys\\client\\jks-store" + ") already exists = " + (file.isFile())); - // return (file.isFile()); - - File fileParent = fileKeystore.getParentFile(); - String[] rgChildren = fileParent.list(); - if (null != rgChildren) - { - for (int i = 0; i < rgChildren.length; i++) - { - log("child " + i + " = " + rgChildren[i]); - if ("jks-store".equals(rgChildren[i])) - { - return true; - } - } - } - - return false; - } - - int invokeCommand(String sCommand) - { - Process p; - int rc; - - log("invoke command: " + sCommand); - Runtime runtime = Runtime.getRuntime(); - - try - { - p = runtime.exec(sCommand); - try - { - rc = p.waitFor(); - log("invoke command return code: " + rc); - } - catch (InterruptedException ie) - { - log(ERROR_EXEC_INTERRUPTED, sCommand); - return ERROR_EXEC_INTERRUPTED; - } - } - catch (IOException e) - { - log("Ioexception"); - return ERROR_EXEC_FAILED; - } - - return ERROR_NO_ERROR; - } - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_EXEC_FAILED: - sMessage = "Execute command failed "; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of params"; - break; - case ERROR_BAD_INSTALL_DIR_PARAM: - sMessage = "Install dir parameter is bad"; - break; - case ERROR_MISSING_INSTALL_DIR: - sMessage = "Missing install dir"; - break; - case ERROR_INSTALL_DIR_NOT_A_DIR: - sMessage = "Install dir is not a dir"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Invalid porperty file parameter"; - break; - case ERROR_MISSING_PROPERTIES_FILE: - sMessage = "Property file not found"; - break; - case ERROR_UNABLE_TO_READ_PROPERTIES: - sMessage = "Unable to read property file"; - break; - case ERROR_UNKNOWN_PARAM: - sMessage = "Unknown parameter: "; - break; - case ERROR_MISSING_INSTALL_DIR_PARAM: - sMessage = "Install dir parameter is missing"; - break; - case ERROR_REQUIRED_VALUE_MISSING: - sMessage = "Required value is missing "; - break; - case ERROR_EXEC_INTERRUPTED: - sMessage = "Execution iinterrupted: "; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException "; - break; - case ERROR_EXCEPTION: - sMessage = "Exception "; - break; - default: - sMessage = "Unknown error"; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } - -} diff --git a/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/Makefile.am b/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/Makefile.am deleted file mode 100644 index bbf3c728..00000000 --- a/CASA-auth-token/server-java/package/windows/ClientKeystoreSetup/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = ClientKeystoreSetup.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = ClientKeystoreSetup -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = ClientKeystoreSetup.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.cpp b/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.cpp deleted file mode 100644 index 9a56fd08..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.cpp +++ /dev/null @@ -1,526 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - - -// CommandLauncher.cpp : Defines the entry point for the application. -// - -#include "stdafx.h" -#include "CommandLauncher.h" -#include "string.h" -#include -#include -#include -#include -#include - -WCHAR ** G_rgArgs; // Command line arguments -int G_cArg; // Count of command line arguments -//FILE * G_pf; - -// Forward declarations of functions included in this code module: -int processArguments(LPTSTR lpCmdLine); -void freeArgs(); -int countArgs(LPTSTR lpCmdLine); -int addArg(int iArg, LPTSTR lpString, int cChar); -void log(LPTSTR szMessage); -_TCHAR * errorMessage(int err); -int executeCommand( int cArg, _TCHAR* rgArg[]); - - -#define ERROR_NO_ERROR 0 -#define ERROR_MEMORY_ALLOCATION_FAILED -1 -#define ERROR_INVALID_NUMBER_OF_PARAMETERS -2 -#define ERROR_EXEC_E2BIG -3 -#define ERROR_EXEC_EACCES -4 -#define ERROR_EXEC_EINVAL -5 -#define ERROR_EXEC_EMFILE -6 -#define ERROR_EXEC_ENOENT -7 -#define ERROR_EXEC_ENOEXEC -8 -#define ERROR_EXEC_ENOMEM -9 -#define ERROR_EXEC_UNKNOWN -10 -#define ERROR_STRCPY_FAILED -11 -#define ERROR_JAVA_EXE_ARG_MISSING -12 -#define ERROR_JAVA_CLASSPATH_OPTION_ARG_MISSING -13 -#define ERROR_JAVA_CLASSPATH_ARG_MISSING -14 -#define ERROR_BAD_COMMAND_LINE -15 - - - -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) -{ - UNREFERENCED_PARAMETER(hInstance); - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - UNREFERENCED_PARAMETER(nCmdShow); - - int rc; - - //_wfopen_s(&G_pf, L"C:\\CommandLauncher.log", L"a+"); - - // Process the command line - if (ERROR_NO_ERROR != (rc = processArguments(lpCmdLine))) - { - return rc; - } - - rc = executeCommand(G_cArg, G_rgArgs); - - log(errorMessage(rc)); - - //fwprintf(G_pf, L"CommandLauncher: return = %d\n", rc); - - //fclose(G_pf); - - return rc; -} - - -// -cp class k1=v1 k2=k2 -int processArguments(LPTSTR lpCmdLine) -{ - int iArg; - int iChar; - int iAssignment; - int iClassStart; - int iClassEnd; - int iClassPathStart; - int iClassPathEnd; - int rc; - bool fClasspathOptionFound = false; - int iKeyStart; - int iValueEnd; - - //fwprintf( G_pf, L"current command line = %s\n", lpCmdLine); - - - // Validate the command line - if (NULL == lpCmdLine || (WCHAR)0 == *lpCmdLine) - { - return ERROR_BAD_COMMAND_LINE; - } - - // Count the arguments on the command line. TThe name of this executable - // is not included in the count. - G_cArg = countArgs(lpCmdLine); - - // Make sure we got enough to exec something. There must be at least the - // path to jave.exe, the classpath option, the classpath and a class. - if (G_cArg < 4) - { - return ERROR_INVALID_NUMBER_OF_PARAMETERS; - } - - // Allocate an array of wide string for the arguments, add 1 for a NULL at - // the end of the array - G_rgArgs = (WCHAR**)malloc((G_cArg + 1) * sizeof(WCHAR *)); - if (NULL == G_rgArgs) - { - return ERROR_MEMORY_ALLOCATION_FAILED; - } - - // Null out the array - memset(G_rgArgs, 0, (G_cArg + 1) * sizeof(WCHAR *)); - - // Find the java.exe argument - iChar = 0; - for (iChar = 0; 0 != lpCmdLine[iChar + 4]; iChar++) - { - if (0 == _wcsnicmp(lpCmdLine + iChar, L".exe", 4)) - { - break; - } - } - if (0 == lpCmdLine[iChar + 4]) - { - rc = ERROR_JAVA_EXE_ARG_MISSING; - goto ErrorOut; - } - - // Add the java.exe argument - if (ERROR_NO_ERROR != (rc = addArg(0, lpCmdLine, iChar + 4))) - { - goto ErrorOut; - } - - // Move past the java.exe argument - iChar += 4; - - // Move past any spaces - for (;L' ' == lpCmdLine[iChar]; iChar++) - { - // Intentionally left blank - } - - // Find the classpath argument - for (; 0 != lpCmdLine[iChar + 3]; iChar++) - { - if (0 == _wcsnicmp(lpCmdLine + iChar, L"-cp", 3)) - { - fClasspathOptionFound = true; - break; - } - } - if (!fClasspathOptionFound) - { - rc = ERROR_JAVA_CLASSPATH_OPTION_ARG_MISSING; - goto ErrorOut; - } - if (0 == lpCmdLine[iChar + 3]) - { - rc = ERROR_JAVA_CLASSPATH_ARG_MISSING; - goto ErrorOut; - } - - // Add the classpath option argument - if (ERROR_NO_ERROR != (rc = addArg(1, L"-cp", iChar + 3))) - { - goto ErrorOut; - } - - // Move past the classpath option argument - iChar += 3; - - // Move past any spaces - for (;L' ' == lpCmdLine[iChar]; iChar++) - { - // Intentionally left blank - } - - // The classpath is next. It can have spaces in it so we need to work - // backards from the first key/value pair, or the end of the line if - // there are no key/value pairs. - iClassPathStart = iChar; - - // Find the location of the next '=' - for (; 0 != lpCmdLine[iChar] && L'=' != lpCmdLine[iChar]; iChar++) - { - // Intentially left blank - } - - // If there was a key/value pair - move to the start of the key - if (L'=' == lpCmdLine[iChar]) - { - iAssignment = iChar; - - // Move back to the previous space. This should put us at the - // beginning of the first key/value pair. Assume that all args - // are property key/value pairs and property keys have no spaces. - for (; L' ' != lpCmdLine[iChar] && iChar >= 0; iChar--) - { - // Intentially left blank - } - } - - else - { - iAssignment = 0; - iChar--; - } - - // Move past any spaces (moving toward the start of the line) - for (;L' ' == lpCmdLine[iChar]; iChar--) - { - // Intentionally left blank - } - - // This should put us at the end of the class to be executed - iClassEnd = iChar; - - // Move to the previous space (moving toward the start of the line) - for (;L' ' != lpCmdLine[iChar]; iChar--) - { - // Intentionally left blank - } - - iClassStart = iChar + 1; - - // Add the class argument - if (ERROR_NO_ERROR != (rc = addArg(3, lpCmdLine + iClassStart, iClassEnd - iClassStart + 1))) - { - goto ErrorOut; - } - - // Move past any spaces (moving toward the start of the line) - for (;L' ' == lpCmdLine[iChar]; iChar--) - { - // Intentionally left blank - } - - // This should put us at the end of the classpath - iClassPathEnd = iChar; - - // Add the class path argument - if (ERROR_NO_ERROR != (rc = addArg(2, lpCmdLine + iClassPathStart, iClassPathEnd - iClassPathStart + 1))) - { - goto ErrorOut; - } - - // Are the any key/value pairs? - if (0 != iAssignment) - { - iArg = 4; - while (0 != lpCmdLine[iAssignment]) - { - iKeyStart = iAssignment; - - // Move back to the previous space. This should put us at the - // beginning of the current next key/value pair. Assume that all args - // are property key/value pairs and property keys have no spaces. - for (; L' ' != lpCmdLine[iKeyStart] && iKeyStart > 0; iKeyStart--) - { - // Intentially left blank - } - if (L' ' == lpCmdLine[iKeyStart]) - { - iKeyStart++; - } - - // Find the location of the next '=' - iValueEnd = iAssignment + 1; - for (; 0 != lpCmdLine[iValueEnd] && L'=' != lpCmdLine[iValueEnd]; iValueEnd++) - { - // Intentially left blank - } - - // If there was a property... - if (L'=' == lpCmdLine[iValueEnd]) - { - iAssignment = iValueEnd; - - // Move back to the previous space. This should put us at the - // beginning of the next key/value pair. Assume that all args - // are property key/value pairs and property keys have no spaces. - for (; L' ' != lpCmdLine[iValueEnd] && iValueEnd >= 0; iValueEnd--) - { - // Intentially left blank - } - } - - else - { - // We have reached the end of the command line - back off from the - // null terminator. - iAssignment = iValueEnd; - iValueEnd--; - } - - // Move thorugh any spaces - for (; L' ' == lpCmdLine[iValueEnd] && iValueEnd >= 0; iValueEnd--) - { - // Intentially left blank - } - - // Add the key/value pair - if (ERROR_NO_ERROR != (rc = addArg(iArg, lpCmdLine + iKeyStart, iValueEnd - iKeyStart + 1))) - { - goto ErrorOut; - } - - // Go on to the next arg - iArg++; - } - } - - return ERROR_NO_ERROR; - -ErrorOut: - - freeArgs(); - log(errorMessage(rc)); - return rc; -} - -void freeArgs() -{ - int iArg; - if (NULL != G_rgArgs) - { - for (iArg = 0; iArg < G_cArg; iArg++) - { - if (NULL != G_rgArgs[iArg]) - { - free(G_rgArgs[iArg]); - G_rgArgs[iArg] = NULL; - } - } - free(G_rgArgs); - G_rgArgs = NULL; - } -} - -int countArgs(LPTSTR lpCmdLine) -{ - int cArgument; - - // Check if the exe to execute is the only argument. Assume that all additional - // arguments have an '=' in them. - for (cArgument = 4; *lpCmdLine != (WCHAR)0; lpCmdLine++) - { - if (*lpCmdLine == L'=') - { - cArgument++; - } - } - return cArgument; -} - -int addArg(int iArg, LPTSTR lpString, int cChar) -{ - int cb = (cChar + 3) * sizeof(WCHAR); // count of bytes - - // Allocate space for the new arg - G_rgArgs[iArg] = (WCHAR *)malloc(cb); - if (NULL == G_rgArgs[iArg]) - { - return ERROR_MEMORY_ALLOCATION_FAILED; - } - - // Null out the argument - memset(G_rgArgs[iArg], 0, cb); - - // Add a starting quote -// G_rgArgs[iArg][0] = L'\"'; - - // Copy the arg - if (0 != wcsncpy_s(G_rgArgs[iArg], cChar + 1, lpString, cChar)) - { - return ERROR_STRCPY_FAILED; - } - - // Add a terminating quote -// G_rgArgs[iArg][cb-1] = L'\"'; - - return ERROR_NO_ERROR; -} - - -void log(LPTSTR szMessage) -{ - /* - LPTSTR szT = L""; - if (NULL == szMessage) - szMessage = szT; - fwprintf(G_pf, L"JavaLauncher: %s\n", szMessage); - */ -} - -_TCHAR * errorMessage(int err) -{ - switch (err) - { - case ERROR_NO_ERROR: - return L"No error\n"; - case ERROR_MEMORY_ALLOCATION_FAILED: - return L"Memory allocation failed\n"; - case ERROR_INVALID_NUMBER_OF_PARAMETERS: - return L"Invalid number of parameters\n"; - case ERROR_EXEC_E2BIG: - return L"_exec: The space required for the arguments and environment settings exceeds 32 KB.\n"; - case ERROR_EXEC_EACCES: - return L"_exec: The specified file has a locking or sharing violation.\n"; - case ERROR_EXEC_EINVAL: - return L"_exec: Invalid parameter.\n"; - case ERROR_EXEC_EMFILE: - return L"_exec: Too many files open (the specified file must be opened to determine whether it is executable).\n"; - case ERROR_EXEC_ENOENT: - return L"_exec: The file or path not found.\n"; - case ERROR_EXEC_ENOEXEC: - return L"_exec: The specified file is not executable or has an invalid executable-file format.\n"; - case ERROR_EXEC_ENOMEM: - return L"_exec: Not enough memory is available to execute the new process; the available memory has been corrupted; or an invalid block exists, indicating that the calling process was not allocated properly.\n"; - case ERROR_EXEC_UNKNOWN: - return L"Unknown _exec error.\n"; - case ERROR_STRCPY_FAILED: - return L"String copy failed.\n"; - case ERROR_JAVA_CLASSPATH_OPTION_ARG_MISSING: - return L"Classpath option \"-cp\" missing\n"; - case ERROR_JAVA_CLASSPATH_ARG_MISSING: - return L"Classpath argument missing\n"; - case ERROR_BAD_COMMAND_LINE: - return L"Bad command line\n"; - default: - return L"Unknown error.\n"; - } -} - -int executeCommand( int cArg, _TCHAR* rgArg[] ) -{ - int i; // Looping variable - int rc = ERROR_NO_ERROR; // Return code - - //fwprintf( G_pf, L"Arg count = %d\n", cArg); - //for (i = 0; i < cArg; i++) - //{ - // fwprintf(G_pf, L"rgArg[%d] (%s)\n", i, rgArg[i]); - //} - - // exec the command -// if (-1 == _wexecv( rgArg[0], rgArg)) - if (-1 == _wspawnv(_P_WAIT, rgArg[0], rgArg)) - { - switch (errno) - { - case E2BIG: // The space required for the arguments and environment settings exceeds 32 KB. - rc = ERROR_EXEC_E2BIG; - break; - - case EACCES: // The specified file has a locking or sharing violation. - rc = ERROR_EXEC_EACCES; - break; - - case EINVAL: // Invalid parameter. - rc = ERROR_EXEC_EINVAL; - break; - - case EMFILE: // Too many files open (the specified file must be opened to determine whether it is executable). - rc = ERROR_EXEC_EMFILE; - break; - - case ENOENT: // The file or path not found. - rc = ERROR_EXEC_ENOENT; - break; - - case ENOEXEC: // The specified file is not executable or has an invalid executable-file format. - rc = ERROR_EXEC_ENOEXEC; - break; - - case ENOMEM: // Not enough memory is available to execute the new process; the available memory has been - // corrupted; or an invalid block exists, indicating that the calling process was not allocated - // properly. - rc = ERROR_EXEC_ENOMEM; - break; - - default: - rc = ERROR_EXEC_UNKNOWN; - break; - } - } - - //fwprintf(G_pf, L"ExecuteCommand returning %d\n", rc); - return rc; -} diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.h b/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.h deleted file mode 100644 index d00d47e7..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#include "resource.h" diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.vcproj b/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.vcproj deleted file mode 100644 index f9a2b13d..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/CommandLauncher.vcproj +++ /dev/null @@ -1,229 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Makefile.am b/CASA-auth-token/server-java/package/windows/CommandLauncher/Makefile.am deleted file mode 100644 index f2e6b99d..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/Makefile.am +++ /dev/null @@ -1,69 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = CommandLauncher.vcproj CommandLauncher.cpp CommandLauncher.h Resource.h stdafx.h stdafx.cpp - -if DEBUG -TARGET_CFG = Debug -else -TARGET_CFG = Release -endif - -PACKAGE = CommandLauncher -TARGET_FILE = $(PACKAGE).exe -LOG_FILE = $(PACKAGE).log - -.PHONY: package package-clean package-install package-uninstall devenv - -package: $(TARGET_FILE) - -devenv: - @if ! test -x "$(VSINSTALLDIR)/Common7/IDE/devenv.exe"; then echo "Error: Microsoft Visual Studio .NET is currently required to build MSI and MSM packages"; exit 1; fi - -$(TARGET_FILE): devenv - @rm -f $(LOG_FILE) $@ - @CMD='"$(VSINSTALLDIR)/Common7/IDE/devenv.exe" ../server-java_msi/server-java_msi.sln /build $(TARGET_CFG) /project $(PACKAGE) /out $(LOG_FILE)'; \ - echo $$CMD; \ - if eval $$CMD; then \ - ls -l bin/$(TARGET_FILE); \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -package-clean clean-local: - rm -rf Release/* Release Debug/* Debug*/Release */Debug *.log *.suo - -clean: - rm -rf Release/* Release Debug/* Debug */Release */Debug *.log *.suo bin/* bin - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/BuildLog.htm b/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/BuildLog.htm deleted file mode 100644 index 282b269e..00000000 Binary files a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/BuildLog.htm and /dev/null differ diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.exe.intermediate.manifest b/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.exe.intermediate.manifest deleted file mode 100644 index e47a6b31..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.exe.intermediate.manifest +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.obj b/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.obj deleted file mode 100644 index c6145064..00000000 Binary files a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/CommandLauncher.obj and /dev/null differ diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/mt.dep b/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/mt.dep deleted file mode 100644 index d9f28b76..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/mt.dep +++ /dev/null @@ -1 +0,0 @@ -Manifest resource last updated at 13:12:58.17 on Wed 01/31/2007 diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/vc80.idb b/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/vc80.idb deleted file mode 100644 index 47e54a82..00000000 Binary files a/CASA-auth-token/server-java/package/windows/CommandLauncher/Release/vc80.idb and /dev/null differ diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/Resource.h b/CASA-auth-token/server-java/package/windows/CommandLauncher/Resource.h deleted file mode 100644 index d0ec2748..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/Resource.h +++ /dev/null @@ -1,31 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by CommandLauncher.rc -// - -#define IDS_APP_TITLE 103 - -#define IDR_MAINFRAME 128 -#define IDD_COMMANDLAUNCHER_DIALOG 102 -#define IDD_ABOUTBOX 103 -#define IDM_ABOUT 104 -#define IDM_EXIT 105 -#define IDI_COMMANDLAUNCHER 107 -#define IDI_SMALL 108 -#define IDC_COMMANDLAUNCHER 109 -#define IDC_MYICON 2 -#ifndef IDC_STATIC -#define IDC_STATIC -1 -#endif -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS - -#define _APS_NO_MFC 130 -#define _APS_NEXT_RESOURCE_VALUE 129 -#define _APS_NEXT_COMMAND_VALUE 32771 -#define _APS_NEXT_CONTROL_VALUE 1000 -#define _APS_NEXT_SYMED_VALUE 110 -#endif -#endif diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/bin/CommandLauncher.exe b/CASA-auth-token/server-java/package/windows/CommandLauncher/bin/CommandLauncher.exe deleted file mode 100644 index 37fbf471..00000000 Binary files a/CASA-auth-token/server-java/package/windows/CommandLauncher/bin/CommandLauncher.exe and /dev/null differ diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.cpp b/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.cpp deleted file mode 100644 index 48feec6d..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// CommandLauncher.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.h b/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.h deleted file mode 100644 index 63b7c8ff..00000000 --- a/CASA-auth-token/server-java/package/windows/CommandLauncher/stdafx.h +++ /dev/null @@ -1,37 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -// Modify the following defines if you have to target a platform prior to the ones specified below. -// Refer to MSDN for the latest info on corresponding values for different platforms. -#ifndef WINVER // Allow use of features specific to Windows XP or later. -#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. -#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. -#endif - -#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. -#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. -#endif - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: -#include - -// C RunTime Header Files -#include -#include -#include -#include - - -// TODO: reference additional headers your program requires here diff --git a/CASA-auth-token/server-java/package/windows/DeleteFile/DeleteFile.java b/CASA-auth-token/server-java/package/windows/DeleteFile/DeleteFile.java deleted file mode 100644 index cc3f1666..00000000 --- a/CASA-auth-token/server-java/package/windows/DeleteFile/DeleteFile.java +++ /dev/null @@ -1,385 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -/** - * Summary description for DeleteFile - */ -public class DeleteFile -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -1; - final static int ERROR_BAD_FILE_PARAM = -2; - final static int ERROR_IO_EXCEPTION = -3; - final static int ERROR_FILE_PARAM_REPEATED = -4; - final static int ERROR_FILTER_PARAM_REPEATED = -5; - final static int ERROR_UNKNOWN_PARAMETER = -6; - final static int ERROR_MISSING_FILE_PARAM = -7; - final static int ERROR_FILTER_ON_NON_DIRECTORY = -8; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -9;; - final static int ERROR_EXCEPTION = -10; - - final static String FILE_KEY = "file="; - final static String FILTER_KEY = "filter="; - - //RandomAccessFile raf; - int rc; - String sFile; - String sFilter; - - public static void main(String[] args) - { - DeleteFile p = new DeleteFile(args); - System.exit(p.rc); - } - - DeleteFile(String[] args) - { - rc = ERROR_NO_ERROR; - sFile = null; - sFilter = null; - - try - { - //raf = new RandomAccessFile(new File("c:\\test8.log"), "rw"); - //raf.seek(raf.length()); - - // Process the arguments - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - rc = doDelete(); - } - - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc); - //raf.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - int iEquals; - String sKey; - String sValue; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (args.length < 1) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - if (null == args[i]) - { - continue; - } - - log("arg[" + i + "] = " +args[i]); - - // is this the file to delete param? - if (args[i].startsWith(FILE_KEY)) - { - // Have we already processed a file paramter? - if (null != sFile) - { - return ERROR_FILE_PARAM_REPEATED; - } - - // Make sure it is more the param tag - if (args[i].length() <= FILE_KEY.length()) - { - return ERROR_BAD_FILE_PARAM; - } - - sFile = args[i].substring(FILE_KEY.length()).trim(); - } - - // is this the filter param? - else if (args[i].startsWith(FILTER_KEY)) - { - // Have we already processed a filter paramter? - if (null != sFilter) - { - return ERROR_FILTER_PARAM_REPEATED; - } - - // Make sure it is more than the param tag - if (args[i].length() <= FILTER_KEY.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sFilter = args[i].substring(FILTER_KEY.length()).trim(); - } - - // Handle additional parameters - else - { - return ERROR_UNKNOWN_PARAMETER; - } - } - - // Make sure we got a file - if (null == sFile) - { - return ERROR_MISSING_FILE_PARAM; - } - - // Note: the filter parameter is optional, if present the file is assumed to be a directory - - return ERROR_NO_ERROR; - } - - int doDelete() - { - File file = new File(sFile); - - log("Attempt to delete: " + sFile); - - // If the file is already gone - we are happy. - if (!file.exists()) - { - log("File did not exist: " + sFile); - return ERROR_NO_ERROR; - } - - // If a filter was passed in but the file is not a directory... - if (null != sFilter) - { - log("there is a filter: + sFilter"); - - // The file is not a directory - we wont try to apply the filter - if (!file.isDirectory()) - { - log("file is not a directory"); - return ERROR_FILTER_ON_NON_DIRECTORY; - } - - // The file is a directory - else - { - log("file is a directory"); - // Delete the children that match the template - deleteFiles(file); - - // Attempt to delete the directory - deleteDirectory(file); - } - } - - else - { - if (!file.isDirectory()) - { - log("Delete file: " + sFile); - file.delete(); - } - - else - { - deleteDirectory(file); - } - } - - return ERROR_NO_ERROR; - } - - void deleteFiles(File file) - { - File fileDelete; - int i; - - log("attempting to delete file"); - - // Get the children of this directory - File[] rgFile = file.listFiles( - new FileFilter() - { - public boolean accept(File f) - { - if (null == sFilter) return true; - log("file " + f.getName() + " matches filter " + sFilter + " : " + (-1 != f.getName().indexOf(sFilter))) ; - return (-1 != f.getName().indexOf(sFilter)); - } - }); - - log(file.getAbsolutePath() + " has " + rgFile.length + " children that match the filter: " + sFilter); - - // Attempt to delete each child file - for (i = 0; i < rgFile.length; i++) - { - if (rgFile[i].isDirectory()) - { - deleteDirectory(rgFile[i]); - } - else - { - log("Delete file: " + rgFile[i].getAbsolutePath()); - rgFile[i].delete(); - } - } - } - - void deleteDirectory(File file) - { - File fileDelete; - int i; - - log("Delete directory: " + file.getAbsolutePath()); - - // Get the children of this directory - File[] rgFile = file.listFiles(); - - log(file.getAbsolutePath() + " has " + rgFile.length + " children"); - - // Delete empty child directories - for (i = 0; i < rgFile.length; i++) - { - if (rgFile[i].isDirectory()) - { - deleteDirectory(rgFile[i]); - } - } - - // Delete this directory if it is empty - rgFile = file.listFiles(); - if (rgFile.length == 0) - { - log("Delete file: " + file.getAbsolutePath()); - file.delete(); - } - } - - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 1 expected"; - break; - case ERROR_BAD_FILE_PARAM: - sMessage = "Bad file parameter"; - break; - case ERROR_FILE_PARAM_REPEATED: - sMessage = "File parameter repeated"; - break; - case ERROR_FILTER_PARAM_REPEATED: - sMessage = "Filter parameter repeated"; - break; - case ERROR_UNKNOWN_PARAMETER: - sMessage = "Unknown parameter: "; - break; - case ERROR_MISSING_FILE_PARAM: - sMessage = "Missing file parameter"; - break; - case ERROR_FILTER_ON_NON_DIRECTORY: - sMessage = "Filter parameter of non-directory file"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Bad property file parameter"; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException "; - break; - case ERROR_EXCEPTION: - sMessage = "Exception "; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - raf.writeUTF(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/DeleteFile/Makefile.am b/CASA-auth-token/server-java/package/windows/DeleteFile/Makefile.am deleted file mode 100644 index aba6cede..00000000 --- a/CASA-auth-token/server-java/package/windows/DeleteFile/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = DeleteFile.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = DeleteFile -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = DeleteFile.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/*.class bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/InitConfigFile/InitConfigFile.java b/CASA-auth-token/server-java/package/windows/InitConfigFile/InitConfigFile.java deleted file mode 100644 index bd0c5b09..00000000 --- a/CASA-auth-token/server-java/package/windows/InitConfigFile/InitConfigFile.java +++ /dev/null @@ -1,547 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -/** - * Summary description for Program - */ -public class InitConfigFile -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -1; - final static int ERROR_MISSING_TEMPLATE = -3; - final static int ERROR_MISSING_TEMPLATE_FILE = -8; - final static int ERROR_OUTPUT_PROPERTY_MISSING = -9; - final static int ERROR_OUTPUT_COPY_FAILED = -12; - final static int ERROR_IO_EXCEPTION = -13; - final static int ERROR_MISSING_PROPERTIES = -15; - final static int ERROR_UNABLE_TO_READ_PROPERTIES = -16; - final static int ERROR_PROPERTIES_FILE_IS_EMPTY = -17; - final static int ERROR_MISSING_INSTALL_DIR = -18; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -19; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -20; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -21; - final static int ERROR_MISSING_PROPERTIES_FILE = -22; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -23; - final static int ERROR_MISSING_PROPERTY_FILE_PARAM = -24; - final static int ERROR_BAD_TEMPLATE_FILE_PARAM = -25; - final static int ERROR_BAD_OUTPUT_FILE_PARAM = -26; - final static int ERROR_MISSING_TEMPLATE_FILE_PARAM = -27; - final static int ERROR_MISSING_OUTPUT_FILE_PARAM = -28; - final static int ERROR_BAD_PROPERTY_PARAM = -29; - final static int ERROR_UNABLE_TO_OPEN_TEMPLATE = -30; - final static int ERROR_FILEWRITER_CREATE_FAILED = -31; - final static int ERROR_BAD_ESCAPE_PATH_CHARS_PARAM = -32; - final static int ERROR_EXCEPTION = -33; - - final static String TEMPLATE_FILE_PARAM = "template="; - final static String OUTPUT_FILE_PARAM = "output="; - final static String INSTALL_DIR_PARAM = "ATS_INSTALL_DIR="; - final static String INSTALL_DIR_PROPERTY = "ATS_INSTALL_DIR"; - final static String PROPERTY_FILE_PARAM = "propertyfile="; - final static String ESCAPE_PATH_CHARS = "escape_path_chars="; - - Properties properties; - File fileProperties; - FileInputStream fisProperties; - File fileTemplate; - File fileOutput; - //File file; - //FileWriter fw; - //RandomAccessFile raf; - String[] rgsSearchFor; - String[] rgsReplaceWith; - String sInstallDir; - String sTemplate; - String sOutput; - int rc; - boolean escapePathCharsInReplaceString = false; - - public static void main(String[] args) - { - InitConfigFile p = new InitConfigFile(args); - System.exit(p.rc); - } - - InitConfigFile(String[] args) - { - rc = ERROR_NO_ERROR; - - properties = new Properties(); - fileProperties = null; - fisProperties = null; - fileTemplate = null; - fileOutput = null; - - try - { - //file = new File("c:\\test.log"); - //fw = new FileWriter(file); - - //raf = new RandomAccessFile(file, "rw"); - //raf.seek(raf.length()); - - // Process the arguments - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Process the properties - if (ERROR_NO_ERROR == (rc = processProperties())) - { - rc = createOutputFile(); - } - } - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc, " " + sOutput + "\n\n\n"); - //raf.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - int iEquals; - String sKey; - String sValue; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (argsOld.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - if (null == args[i]) - { - continue; - } - - log("arg[" + i + "] = " +args[i]); - - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR_PARAM)) - { - // Make sure it is more the the param tag - if (args[i].length() <= INSTALL_DIR_PARAM.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR_PARAM.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - - log("Adding property (key = " + INSTALL_DIR_PROPERTY + " - value = " + sInstallDir); - properties.setProperty(INSTALL_DIR_PROPERTY, sInstallDir); - } - - // is this the properties file param? - else if (args[i].startsWith(PROPERTY_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= PROPERTY_FILE_PARAM.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sProperties = args[i].substring(PROPERTY_FILE_PARAM.length()).trim(); - fileProperties = new File(sProperties); - - // Make sure the properties file can be found - if (!fileProperties.exists()) - { - return ERROR_MISSING_PROPERTIES_FILE; - } - - // Read the properties - try - { - fisProperties = new FileInputStream(fileProperties); - properties.load(fisProperties); - } - catch (IOException ioe) - { - return ERROR_UNABLE_TO_READ_PROPERTIES; - } - } - - else if (args[i].startsWith(TEMPLATE_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= TEMPLATE_FILE_PARAM.length()) - { - return ERROR_BAD_TEMPLATE_FILE_PARAM; - } - - sTemplate = args[i].substring(TEMPLATE_FILE_PARAM.length()).trim(); - fileTemplate = new File(sTemplate); - - // Make sure the template file can be found - if (!fileTemplate.exists()) - { - log(ERROR_MISSING_TEMPLATE_FILE, sTemplate); - return ERROR_MISSING_TEMPLATE_FILE; - } - } - - else if (args[i].startsWith(OUTPUT_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= OUTPUT_FILE_PARAM.length()) - { - return ERROR_BAD_OUTPUT_FILE_PARAM; - } - - sOutput = args[i].substring(OUTPUT_FILE_PARAM.length()).trim(); - fileOutput = new File(sOutput); - } - - else if (args[i].startsWith(ESCAPE_PATH_CHARS)) - { - // Make sure it is more than the param tag - if (args[i].length() <= ESCAPE_PATH_CHARS.length()) - { - return ERROR_BAD_ESCAPE_PATH_CHARS_PARAM; - } - - String value = args[i].substring(ESCAPE_PATH_CHARS.length()).trim(); - if (value.equalsIgnoreCase("true")) - { - escapePathCharsInReplaceString = true; - } - } - - // Handle additional parameters - else - { - if (-1 == (iEquals = args[i].indexOf("=")) || - 0 == iEquals || - args[i].length() == iEquals) - { - return ERROR_BAD_PROPERTY_PARAM; - } - sKey = args[i].substring(0, iEquals); - sValue = args[i].substring(iEquals + 1); - log("Adding property (key = " + sKey + " - value = " + sValue); - properties.setProperty(sKey, sValue); - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - // Make sure we got a template file - if (null == fileTemplate) - { - return ERROR_MISSING_TEMPLATE_FILE_PARAM; - } - - // Make sure we got an output file - if (null == fileOutput) - { - return ERROR_MISSING_OUTPUT_FILE_PARAM; - } - - // Note: the properties file parameter is optional - - return ERROR_NO_ERROR; - } - - int processProperties() - { - try - { - Enumeration e; - String sKey; - String sValue; - int i = 0; - - e = properties.propertyNames(); - - rgsSearchFor = new String[properties.size()]; - rgsReplaceWith = new String[properties.size()]; - - log("property count = " + properties.size()); - while (e.hasMoreElements()) - { - sKey = (String)e.nextElement(); - sValue = (String)properties.get(sKey); - - log("Property key = " + sKey + " Value = " + sValue); - - rgsSearchFor[i] = sKey; - if (escapePathCharsInReplaceString) - { - rgsReplaceWith[i] = sValue.replace("\\", "\\\\"); - } - else - { - rgsReplaceWith[i] = sValue; - } - i++; - } - } - catch (Exception ex1) - { - return -111; - } - - return ERROR_NO_ERROR; - } - - int createOutputFile() - { - LineNumberReader lnr = null; - FileWriter fwOutput = null; - String sLineTemplate; - String sLineOutput; - int iSearchFor; - int i; - - try - { - // Open the files - lnr = new LineNumberReader(new FileReader(fileTemplate)); - } - catch (Exception e) - { - return ERROR_UNABLE_TO_OPEN_TEMPLATE; - } - - try - { - fwOutput = new FileWriter(fileOutput); - } - catch (Exception e) - { - return ERROR_FILEWRITER_CREATE_FAILED; - } - try - { - // For each line of text in the template file... - while (null != (sLineTemplate = lnr.readLine())) - { - sLineOutput = sLineTemplate; - log("<-- " + sLineOutput); - - // For each term to be replaced... - for (i = 0; i < rgsSearchFor.length; i++) - { - log("searching for " + rgsSearchFor[i]); - // Replace all instances of the term on the line - while (-1 != (iSearchFor = sLineOutput.indexOf(rgsSearchFor[i]))) - { - log("replacing " + rgsSearchFor[i] + " at position " + iSearchFor + " with " + rgsReplaceWith[i]); - sLineOutput = sLineOutput.substring(0, iSearchFor) + rgsReplaceWith[i] + - sLineOutput.substring(iSearchFor + rgsSearchFor[i].length()); - } - } - try - { - fwOutput.write(sLineOutput + "\r\n"); - log("--> " + sLineOutput); - } - catch (Exception e) - { - return -42; - } - } - - // Clean up - fwOutput.flush(); - fwOutput.close(); - lnr.close(); - } - catch (Exception e) - { - return ERROR_OUTPUT_COPY_FAILED; - } - return ERROR_NO_ERROR; - } - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 4 expected"; - break; - case ERROR_MISSING_TEMPLATE: - sMessage = "Template file not found"; - break; - case ERROR_OUTPUT_PROPERTY_MISSING: - sMessage = "Output file parameter missing"; - break; - case ERROR_OUTPUT_COPY_FAILED: - sMessage = "Unable to create output file"; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException"; - break; - case ERROR_MISSING_PROPERTIES: - sMessage = "Properties file not found"; - break; - case ERROR_MISSING_TEMPLATE_FILE: - sMessage = "Missing template file"; - break; - case ERROR_PROPERTIES_FILE_IS_EMPTY: - sMessage = "Properties file is empty"; - break; - case ERROR_MISSING_INSTALL_DIR: - sMessage = "Missing install dir"; - break; - case ERROR_INSTALL_DIR_NOT_A_DIR: - sMessage = "Install directory is not a directory"; - break; - case ERROR_BAD_INSTALL_DIR_PARAM: - sMessage = "Bad install directory parameter"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Bad property file parameter"; - break; - case ERROR_MISSING_PROPERTIES_FILE: - sMessage = "Missing properties file"; - break; - case ERROR_MISSING_INSTALL_DIR_PARAM: - sMessage = "Missing install directory parameter"; - break; - case ERROR_MISSING_PROPERTY_FILE_PARAM: - sMessage = "Missing property file parameter"; - break; - case ERROR_BAD_TEMPLATE_FILE_PARAM: - sMessage = "Bad template file parameter"; - break; - case ERROR_BAD_OUTPUT_FILE_PARAM: - sMessage = "Bad output file parameter"; - break; - case ERROR_MISSING_TEMPLATE_FILE_PARAM: - sMessage = "Missing template file parameter"; - break; - case ERROR_MISSING_OUTPUT_FILE_PARAM: - sMessage = "Missing output file parameter"; - break; - case ERROR_BAD_PROPERTY_PARAM: - sMessage = "Bad property parameter"; - break; - case ERROR_UNABLE_TO_READ_PROPERTIES: - sMessage = "Unable to read properties file"; - break; - case ERROR_UNABLE_TO_OPEN_TEMPLATE: - sMessage = "Unable to open template"; - break; - case ERROR_FILEWRITER_CREATE_FAILED: - sMessage = "FileWriter create failed"; - break; - case ERROR_EXCEPTION: - sMessage = "Exception "; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - raf.writeUTF(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/InitConfigFile/Makefile.am b/CASA-auth-token/server-java/package/windows/InitConfigFile/Makefile.am deleted file mode 100644 index 3ab7bcf8..00000000 --- a/CASA-auth-token/server-java/package/windows/InitConfigFile/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = InitConfigFile.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = InitConfigFile -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = InitConfigFile.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/Makefile.am b/CASA-auth-token/server-java/package/windows/Makefile.am index 2695d7d1..7eb5fe05 100644 --- a/CASA-auth-token/server-java/package/windows/Makefile.am +++ b/CASA-auth-token/server-java/package/windows/Makefile.am @@ -20,22 +20,15 @@ # ####################################################################### -SUBDIRS = ClientKeystoreSetup DeleteFile InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService ShutdownWindowsService UpdateWarFile server-java_msi +SUBDIRS = AtsConfigurator server-java_msi -DIST_SUBDIRS = ClientKeystoreSetup DeleteFile CommandLauncher InitConfigFile MungeCryptoPropertiesFilePath ServerKeystoreSetup SetupAsWindowsService ShutdownWindowsService UpdateWarFile server-java_msi +DIST_SUBDIRS = AtsConfigurator server-java_msi EXTRA_DIST = .PHONY: package package-clean package-install package-uninstall package package-clean package-install package-uninstall: - $(MAKE) -C ClientKeystoreSetup $@ - $(MAKE) -C DeleteFile $@ - $(MAKE) -C InitConfigFile $@ - $(MAKE) -C MungeCryptoPropertiesFilePath $@ - $(MAKE) -C ServerKeystoreSetup $@ - $(MAKE) -C SetupAsWindowsService $@ - $(MAKE) -C ShutdownWindowsService $@ - $(MAKE) -C UpdateWarFile $@ + $(MAKE) -C AtsConfigurator $@ $(MAKE) -C server-java_msi $@ clean-local: diff --git a/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/Makefile.am b/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/Makefile.am deleted file mode 100644 index bd8ede44..00000000 --- a/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = MungeCryptoPropertiesFilePath.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = MungeCryptoPropertiesFilePath -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = MungeCryptoPropertiesFilePath.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/MungeCryptoPropertiesFilePath.java b/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/MungeCryptoPropertiesFilePath.java deleted file mode 100644 index b033a746..00000000 --- a/CASA-auth-token/server-java/package/windows/MungeCryptoPropertiesFilePath/MungeCryptoPropertiesFilePath.java +++ /dev/null @@ -1,335 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -/** - * Summary description for Program - */ -public class MungeCryptoPropertiesFilePath -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -1; - final static int ERROR_MISSING_INPUT_FILE = -2; - final static int ERROR_OUTPUT_COPY_FAILED = -3; - final static int ERROR_IO_EXCEPTION = -4; - final static int ERROR_BAD_INPUT_FILE_PARAM = -5; - final static int ERROR_BAD_OUTPUT_FILE_PARAM = -6; - final static int ERROR_MISSING_INPUT_FILE_PARAM = -7; - final static int ERROR_MISSING_OUTPUT_FILE_PARAM = -8; - final static int ERROR_CANNOT_READ_FILE = -9; - final static int ERROR_CANNOT_CREATE_FILE = -10; - final static int ERROR_EXCEPTION = -11; - - final static String INPUT_FILE_PARAM = "input="; - final static String OUTPUT_FILE_PARAM = "output="; - final static String FILE_KEY = "com.novell.casa.authtoksvc.crypto.file="; - - File fileInput; - File fileOutput; - //File file; - //FileWriter fw; - String sInput; - String sOutput; - int rc; - - public static void main(String[] args) - { - MungeCryptoPropertiesFilePath p = new MungeCryptoPropertiesFilePath(args); - System.exit(p.rc); - } - - MungeCryptoPropertiesFilePath(String[] args) - { - rc = ERROR_NO_ERROR; - - fileInput = null; - fileOutput = null; - - try - { - //file = new File("c:\\test5.log"); - //fw = new FileWriter(file); - - log("Here we go: " + args.length); - for (int i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i]); - } - - // Process the arguments - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Process the file - rc = createOutputFile(); - } - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc); - //fw.flush(); - //fw.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (argsOld.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i] + "\r\n"); - } - - for (i = 0; i <= iNew; i++) - { - log("arg[" + i + "] = " +args[i]); - - if (args[i].startsWith(INPUT_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= INPUT_FILE_PARAM.length()) - { - return ERROR_BAD_INPUT_FILE_PARAM; - } - - sInput = args[i].substring(INPUT_FILE_PARAM.length()).trim(); - fileInput = new File(sInput); - - // Make sure the input file can be found - if (!fileInput.exists()) - { - log(ERROR_MISSING_INPUT_FILE, sInput); - return ERROR_MISSING_INPUT_FILE; - } - } - - else if (args[i].startsWith(OUTPUT_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= OUTPUT_FILE_PARAM.length()) - { - return ERROR_BAD_OUTPUT_FILE_PARAM; - } - - sOutput = args[i].substring(OUTPUT_FILE_PARAM.length()).trim(); - fileOutput = new File(sOutput); - } - } - - // Make sure we got an input file - if (null == fileInput) - { - return ERROR_MISSING_INPUT_FILE_PARAM; - } - - // Make sure we got an output file - if (null == fileOutput) - { - return ERROR_MISSING_OUTPUT_FILE_PARAM; - } - - return ERROR_NO_ERROR; - } - - int createOutputFile() - { - LineNumberReader lnr = null; - FileWriter fwOutput = null; - String sLineTemplate; - String sLineOutput; - int iSearchFor; - - try - { - // Open the file - lnr = new LineNumberReader(new FileReader(fileInput)); - } - catch (Exception e) - { - return ERROR_CANNOT_READ_FILE; - } - - try - { - fwOutput = new FileWriter(fileOutput); - } - catch (Exception e) - { - return ERROR_CANNOT_CREATE_FILE; - } - try - { - // For each line of text in the template file... - while (null != (sLineTemplate = lnr.readLine())) - { - sLineOutput = sLineTemplate; - log("<-- " + sLineOutput); - - if (sLineOutput.trim().startsWith(FILE_KEY)) - { - // Replace all instances of the line separator on the line - while (-1 != (iSearchFor = sLineOutput.indexOf("\\"))) - { - log("replacing \\ at position " + iSearchFor + " with //"); - sLineOutput = sLineOutput.substring(0, iSearchFor) + "//" + - sLineOutput.substring(iSearchFor + 1); - } - } - try - { - fwOutput.write(sLineOutput + "\r\n"); - log("--> " + sLineOutput); - } - catch (Exception e) - { - return -42; - } - } - - // Clean up - fwOutput.flush(); - fwOutput.close(); - lnr.close(); - } - catch (Exception e) - { - return ERROR_OUTPUT_COPY_FAILED; - } - return ERROR_NO_ERROR; - } - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 2 expected"; - break; - case ERROR_MISSING_INPUT_FILE: - sMessage = "Missing input file"; - break; - case ERROR_OUTPUT_COPY_FAILED: - sMessage = "Unable to create output file"; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException"; - break; - case ERROR_BAD_INPUT_FILE_PARAM: - sMessage = "Invalid input file parameter"; - break; - case ERROR_BAD_OUTPUT_FILE_PARAM: - sMessage = "Invalid output file parameter"; - break; - case ERROR_MISSING_INPUT_FILE_PARAM: - sMessage = "Missing input file parameter"; - break; - case ERROR_MISSING_OUTPUT_FILE_PARAM: - sMessage = "Missing output file parameter"; - break; - case ERROR_CANNOT_READ_FILE: - sMessage = "Cannot read file"; - break; - case ERROR_CANNOT_CREATE_FILE: - sMessage = "Cannot create file"; - break; - case ERROR_EXCEPTION: - sMessage = "Exception"; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Makefile.am b/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Makefile.am deleted file mode 100644 index 021281ff..00000000 --- a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = ServerKeystoreSetup.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = ServerKeystoreSetup -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = ServerKeystoreSetup.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Properties/AssemblyInfo.jsl b/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Properties/AssemblyInfo.jsl deleted file mode 100644 index 2da8c3e2..00000000 --- a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/Properties/AssemblyInfo.jsl +++ /dev/null @@ -1,36 +0,0 @@ -import System.Reflection.*; -import System.Runtime.CompilerServices.*; -import System.Runtime.InteropServices.*; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// - -/** @assembly AssemblyTitle("ServerKeystoreSetup") */ -/** @assembly AssemblyDescription("") */ -/** @assembly AssemblyCompany("Novell") */ -/** @assembly AssemblyProduct("ServerKeystoreSetup") */ -/** @assembly AssemblyCopyright("Copyright © Novell 2006") */ -/** @assembly AssemblyTrademark("") */ -/** @assembly AssemblyCulture("") */ - - -// The ComVisible attribute controls accessibility of an individual type -// or member, or of all types within this assembly, from COM. To access -// a type or member in this assembly from COM, set the ComVisible attribute -// on that type or member to true. -/** @assembly ComVisible(false) */ - - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -/** @assembly AssemblyVersion("1.0.0.0") */ diff --git a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/ServerKeystoreSetup.java b/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/ServerKeystoreSetup.java deleted file mode 100644 index 06f80685..00000000 --- a/CASA-auth-token/server-java/package/windows/ServerKeystoreSetup/ServerKeystoreSetup.java +++ /dev/null @@ -1,414 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -public class ServerKeystoreSetup -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_EXEC_FAILED = -1; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -2; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -3; - final static int ERROR_MISSING_INSTALL_DIR = -4; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -5; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -6; - final static int ERROR_MISSING_PROPERTIES_FILE = -7; - final static int ERROR_UNABLE_TO_READ_PROPERTIES = -8; - final static int ERROR_UNKNOWN_PARAM = -9; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -10; - final static int ERROR_REQUIRED_VALUE_MISSING = -11; - final static int ERROR_EXEC_INTERRUPTED = -12; - final static int ERROR_IO_EXCEPTION = -13; - final static int ERROR_EXCEPTION = -14; - - final static String INSTALL_DIR = "installdir="; - final static String PROPERTY_FILE = "propertyfile="; - - String sInstallDir; - Properties properties; - int rc; - - // debug stuff - //File file; - //FileWriter fw; - - public static void main(String[] args) - { - ServerKeystoreSetup p = new ServerKeystoreSetup(args); - System.exit(p.rc); - } - - ServerKeystoreSetup(String[] args) - { - rc = ERROR_NO_ERROR; - try - { - // DEBUG STUFF - //file = new File("c:\\test2.log"); - //fw = new FileWriter(file); - - // Process the input params - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Make sure we got everything we need - if (ERROR_NO_ERROR == (rc = findRequiredValues())) - { - // Make sure the server keystore has been created - rc = createServerKeystore(); - } - } - - // DEBUG STUFF - log(rc); - //fw.flush(); - //fw.close(); - // DEBUG STUFF - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - File fileProperties = null; - FileInputStream fisProperties = null; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (args.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i] + "\r\n"); - } - - - for (i = 0; i <= iNew; i++) - { - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR)) - { - // Make sure it is more the the param tag - if (args[i].length() <= INSTALL_DIR.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - } - - // is this the properties file param? - else if (args[i].startsWith(PROPERTY_FILE)) - { - // Make sure it is more the the param tag - if (args[i].length() <= PROPERTY_FILE.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sProperties = args[i].substring(PROPERTY_FILE.length()).trim(); - fileProperties = new File(sProperties); - - // Make sure the properties file can be found - if (!fileProperties.exists()) - { - return ERROR_MISSING_PROPERTIES_FILE; - } - - // Read the properties - try - { - fisProperties = new FileInputStream(fileProperties); - properties = new Properties(); - properties.load(fisProperties); - } - catch (IOException ioe) - { - return ERROR_UNABLE_TO_READ_PROPERTIES; - } - } - - // Unknown parameter - else - { - log(ERROR_UNKNOWN_PARAM, args[i]); - return ERROR_UNKNOWN_PARAM; - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - return ERROR_NO_ERROR; - } - - int findRequiredValues() - { - String[] rgsRequired = { - "ATS_JAVA_HOME", - "COMPUTERNAME"}; - int i; - String sValue; - - for (i = 0; i < rgsRequired.length; i++) - { - log("look for required value: " + rgsRequired[i]); - - if (!properties.containsKey(rgsRequired[i])) - { - log("look for required value in envirement: " + rgsRequired[i]); - if (null == (sValue = System.getProperty(rgsRequired[i]))) - { - log("unable to find required value in envirement: " + rgsRequired[i]); - return ERROR_REQUIRED_VALUE_MISSING; - } - log("found required value in envirement: " + rgsRequired[i] + " = " + sValue); - properties.put(rgsRequired[i], sValue); - } - log("found required value: " + rgsRequired[i] + " = " + properties.get(rgsRequired[i])); - } - return ERROR_NO_ERROR; - } - - - int createServerKeystore() - { - int rc; - String sKeytool = properties.get("ATS_JAVA_HOME") + "\\bin\\keytool.exe"; - String sHost = (String)properties.get("COMPUTERNAME"); - - log("keytool = " + sKeytool); - log("host = " + sHost); - - // Do not do anything if the server keystore has already been created - if (keyStoreAlreadyExists()) - { - return ERROR_NO_ERROR; - } - - // Create the server keystore with the key that will be used for signing tokens - if (ERROR_NO_ERROR == (rc =invokeCommand(sKeytool + " -genkey -alias signingKey -keystore " + - sInstallDir + "ats\\etc\\keys\\server\\jks-store -dname \"cn=casaatsd@" + sHost + - "\" -validity 3600 -keypass secret -storepass secret"))) - { - // Export self-signed certificate for the signing key - if (ERROR_NO_ERROR == (rc = invokeCommand(sKeytool + " -export -keystore " + - sInstallDir + "ats\\etc\\keys\\server\\jks-store -alias signingKey -storepass secret -keypass secret -file " + - sInstallDir + "ats\\etc\\keys\\casaatsdSigningCert"))) - { - // Create a key for Tomcat to do SSL communications - rc = invokeCommand(sKeytool + " -genkey -alias tomcat -keyalg RSA -keystore " + - sInstallDir + "ats\\etc\\keys\\server\\jks-store -dname \"cn=" + - sHost + "\" -validity 3600 -keypass secret -storepass secret"); - } - } - return rc; - } - - boolean keyStoreAlreadyExists() - { - File fileKeystore = new File(sInstallDir + "ats\\etc\\keys\\server\\jks-store"); - - // Why is this always returning true? exists() also always returns true. - // log("keystore (" + sInstallDir + "ats\\etc\\keys\\server\\jks-store" + ") already exists = " + (file.isFile())); - // return (file.isFile()); - - File fileParent = fileKeystore.getParentFile(); - String[] rgChildren = fileParent.list(); - if (null != rgChildren) - { - for (int i = 0; i < rgChildren.length; i++) - { - log("child " + i + " = " + rgChildren[i]); - if ("jks-store".equals(rgChildren[i])) - { - return true; - } - } - } - - return false; - } - - int invokeCommand(String sCommand) - { - Process p; - int rc; - - log("invoke command: " + sCommand); - Runtime runtime = Runtime.getRuntime(); - - try - { - p = runtime.exec(sCommand); - try - { - rc = p.waitFor(); - log("invoke command return code: " + rc); - } - catch (InterruptedException ie) - { - log(ERROR_EXEC_INTERRUPTED, sCommand); - return ERROR_EXEC_INTERRUPTED; - } - } - catch (IOException e) - { - log("Ioexception"); - return ERROR_EXEC_FAILED; - } - - return ERROR_NO_ERROR; - } - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_EXEC_FAILED: - sMessage = "Execute command failed "; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of params"; - break; - case ERROR_BAD_INSTALL_DIR_PARAM: - sMessage = "Install dir parameter is bad"; - break; - case ERROR_MISSING_INSTALL_DIR: - sMessage = "Missing install dir"; - break; - case ERROR_INSTALL_DIR_NOT_A_DIR: - sMessage = "Install dir is not a dir"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Invalid porperty file parameter"; - break; - case ERROR_MISSING_PROPERTIES_FILE: - sMessage = "Property file not found"; - break; - case ERROR_UNABLE_TO_READ_PROPERTIES: - sMessage = "Unable to read property file"; - break; - case ERROR_UNKNOWN_PARAM: - sMessage = "Unknown parameter: "; - break; - case ERROR_MISSING_INSTALL_DIR_PARAM: - sMessage = "Install dir parameter is missing"; - break; - case ERROR_REQUIRED_VALUE_MISSING: - sMessage = "Required value is missing "; - break; - case ERROR_EXEC_INTERRUPTED: - sMessage = "Execution iinterrupted: "; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IO Exception "; - break; - case ERROR_EXCEPTION: - sMessage = "Exception "; - break; - default: - sMessage = "Unknown error"; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } - -} diff --git a/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/Makefile.am b/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/Makefile.am deleted file mode 100644 index 20946590..00000000 --- a/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = SetupAsWindowsService.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = SetupAsWindowsService -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = SetupAsWindowsService.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/SetupAsWindowsService.java b/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/SetupAsWindowsService.java deleted file mode 100644 index 667aed3d..00000000 --- a/CASA-auth-token/server-java/package/windows/SetupAsWindowsService/SetupAsWindowsService.java +++ /dev/null @@ -1,517 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -/** - * Summary description for SetupAsWindowsService - */ -public class SetupAsWindowsService -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -1; - final static int ERROR_EXEC_FAILED = -2; - final static int ERROR_EXEC_INTERRUPTED = -3; - final static int ERROR_IO_EXCEPTION = -13; - final static int ERROR_UNABLE_TO_READ_PROPERTIES = -16; - final static int ERROR_MISSING_INSTALL_DIR = -18; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -19; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -20; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -21; - final static int ERROR_MISSING_PROPERTIES_FILE = -22; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -23; - final static int ERROR_MISSING_PROPERTY_FILE_PARAM = -24; - final static int ERROR_BAD_PROPERTY_PARAM = -29; - final static int ERROR_EXCEPTION = -30; - - final static String INSTALL_DIR_PROPERTY = "ATS_INSTALL_DIR"; - final static String PROPERTY_FILE_PARAM = "propertyfile="; - final static String INSTALL_DIR = "installdir="; - final static String PROPERTY_FILE = "propertyfile="; - - Properties properties; - File fileProperties; - FileInputStream fisProperties; - File fileOutput; - //File file; - //FileWriter fw; - String sInstallDir; - String sOutput; - int rc; - - public static void main(String[] args) - { - SetupAsWindowsService p = new SetupAsWindowsService(args); - System.exit(p.rc); - } - - SetupAsWindowsService(String[] args) - { - rc = ERROR_NO_ERROR; - - properties = new Properties(); - fileProperties = null; - fisProperties = null; - fileOutput = null; - - try - { - //file = new File("c:\\test6.log"); - //fw = new FileWriter(file); - - // Process the arguments - log("Process args"); - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Process the properties - log("Process properties"); - if (ERROR_NO_ERROR == (rc = processProperties())) - { - log("setupService"); - rc = setupService(); - } - } - - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc); - //fw.flush(); - //fw.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - int iEquals; - String sKey; - String sValue; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (args.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - if (null == args[i]) - { - continue; - } - - log("arg[" + i + "] = " +args[i]); - - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR)) - { - // Make sure it is more the the param tag - if (args[i].length() <= INSTALL_DIR.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - - properties.setProperty(INSTALL_DIR_PROPERTY, sInstallDir); - } - - // is this the properties file param? - else if (args[i].startsWith(PROPERTY_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= PROPERTY_FILE_PARAM.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sProperties = args[i].substring(PROPERTY_FILE_PARAM.length()).trim(); - fileProperties = new File(sProperties); - - // Make sure the properties file can be found - if (!fileProperties.exists()) - { - return ERROR_MISSING_PROPERTIES_FILE; - } - - // Read the properties - try - { - fisProperties = new FileInputStream(fileProperties); - properties.load(fisProperties); - } - catch (IOException ioe) - { - return ERROR_UNABLE_TO_READ_PROPERTIES; - } - } - - // Handle additional parameters - else - { - if (-1 == (iEquals = args[i].indexOf("=")) || - 0 == iEquals || - args[i].length() == iEquals) - { - return ERROR_BAD_PROPERTY_PARAM; - } - sKey = args[i].substring(0, iEquals); - sValue = args[i].substring(iEquals + 1); - properties.setProperty(sKey, sValue); - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - // Note: the properties file parameter is optional - return ERROR_NO_ERROR; - } - - int processProperties() - { - try - { - Enumeration e; - String sKey; - String sValue; - - e = properties.propertyNames(); - - while (e.hasMoreElements()) - { - sKey = (String)e.nextElement(); - sValue = (String)properties.get(sKey); - - log("Property key = " + sKey + " Value = " + sValue); - } - } - catch (Exception ex1) - { - return -111; - } - - return ERROR_NO_ERROR; - } - - int setupService() - { - String sDirInstall = (String)properties.get(INSTALL_DIR_PROPERTY); - String sDirCatalinaBase = sInstallDir + "ats/catalinabase"; - String sDirCatalinaHome = (String)properties.get("TOMCAT_HOME"); - String sExe = (String)properties.get("TOMCAT5"); - String sFileJaasConf = (String)properties.get("JAAS_CONF"); - String sDirConfig = sDirInstall + "ats/etc/svc"; - String sDirJavaHome = (String)properties.get("ATS_JAVA_HOME"); - String sLogPrefix = "casa-auth-token-svc"; - String sDirLogs = sDirCatalinaBase + "/logs"; - String sCommand = ""; - int iReturn = ERROR_NO_ERROR; - - sCommand = sExe + " //IS//CasaAuthTokenService --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --Startup auto"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --JvmOptions \"-Dcatalina.base=" + sDirCatalinaBase + "\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Dcatalina.home=" + sDirCatalinaHome + "\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Djava.endorsed.dirs=" + sDirCatalinaHome + "/common/endorsed\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Djava.security.auth.login.config=" + sFileJaasConf + "\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Dcom.novell.casa.authtoksvc.config=" + sDirConfig + "\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Dlog4j.configuration=file:" + sDirInstall + "/ats/etc/log4j.properties"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService ++JvmOptions \"-Djava.io.tmpdir=" + sDirCatalinaBase+ "/temp\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --StartMode jvm --StopMode jvm"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --JvmMs 128 --JvmMx 512"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --Classpath \"" + sDirCatalinaHome + "/bin/bootstrap.jar\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --Jvm \"" + sDirJavaHome + "/jre/bin/server/jvm.dll\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --LogPath \"" + sDirLogs + "\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --LogPrefix \"" + sLogPrefix + "_service.log\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --StdOutput \"" + sDirLogs + - File.separator + sLogPrefix + "_stdout.log\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --StdError \"" + sDirLogs + - File.separator + sLogPrefix + "_stderr.log\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --DisplayName " + "CasaAuthTokenSvc"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //US//CasaAuthTokenService --Description " + "\"Casa Authentication Token Service\""; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - return ERROR_NO_ERROR; - } - - int invokeCommand(String sCommand) - { - Process p; - int rc; - - log("invoke command: " + sCommand); - Runtime runtime = Runtime.getRuntime(); - try - { - p = runtime.exec(sCommand); - try - { - rc = p.waitFor(); - log("invoke command return code: " + rc); - } - catch (InterruptedException ie) - { - log(ERROR_EXEC_INTERRUPTED, sCommand); - return ERROR_EXEC_INTERRUPTED; - } - } - catch (IOException e) - { - log("IOException"); - return ERROR_EXEC_FAILED; - } - - return ERROR_NO_ERROR; - } - - - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 4 expected"; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException"; - break; - case ERROR_EXEC_FAILED: - sMessage = "Exec failed"; - break; - case ERROR_EXEC_INTERRUPTED: - sMessage = "Exec interrupted"; - break; - case ERROR_UNABLE_TO_READ_PROPERTIES: - sMessage = "nable to read properties"; - break; - case ERROR_MISSING_INSTALL_DIR: - sMessage = "Missing install directory"; - break; - case ERROR_INSTALL_DIR_NOT_A_DIR: - sMessage = "Install directory is not a directory"; - break; - case ERROR_BAD_INSTALL_DIR_PARAM: - sMessage = "Bad install directory parameter"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Bad property file parameter"; - break; - case ERROR_MISSING_PROPERTIES_FILE: - sMessage = "Missing properties file"; - break; - case ERROR_MISSING_INSTALL_DIR_PARAM: - sMessage = "Missing install directory parameter"; - break; - case ERROR_MISSING_PROPERTY_FILE_PARAM: - sMessage = "Missing property file parameter"; - break; - case ERROR_BAD_PROPERTY_PARAM: - sMessage = "Bad property parameter"; - break; - case ERROR_EXCEPTION: - sMessage = "Exception"; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/Makefile.am b/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/Makefile.am deleted file mode 100644 index 1b9935c8..00000000 --- a/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = ShutdownWindowsService.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = ShutdownWindowsService -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = ShutdownWindowsService.java -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) -BUILDDIR = bin/$(TARGET_CFG) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/ShutdownWindowsService.java b/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/ShutdownWindowsService.java deleted file mode 100644 index 4f12a768..00000000 --- a/CASA-auth-token/server-java/package/windows/ShutdownWindowsService/ShutdownWindowsService.java +++ /dev/null @@ -1,403 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - -import java.io.*; -import java.util.*; - -/** - * Summary description for ShutdownWindowsService - */ -public class ShutdownWindowsService -{ - final static int ERROR_NO_ERROR = 0; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -1; - final static int ERROR_EXEC_FAILED = -2; - final static int ERROR_EXEC_INTERRUPTED = -3; - final static int ERROR_IO_EXCEPTION = -13; - final static int ERROR_UNABLE_TO_READ_PROPERTIES = -16; - final static int ERROR_MISSING_INSTALL_DIR = -18; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -19; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -20; - final static int ERROR_BAD_PROPERTY_FILE_PARAM = -21; - final static int ERROR_MISSING_PROPERTIES_FILE = -22; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -23; - final static int ERROR_MISSING_PROPERTY_FILE_PARAM = -24; - final static int ERROR_BAD_PROPERTY_PARAM = -29; - final static int ERROR_EXCEPTION = -30; - - final static String INSTALL_DIR_PROPERTY = "ATS_INSTALL_DIR"; - final static String PROPERTY_FILE_PARAM = "propertyfile="; - final static String INSTALL_DIR = "installdir="; - final static String PROPERTY_FILE = "propertyfile="; - - Properties properties; - File fileProperties; - FileInputStream fisProperties; - File fileOutput; - //File file; - //FileWriter fw; - String sInstallDir; - String sOutput; - int rc; - - public static void main(String[] args) - { - ShutdownWindowsService p = new ShutdownWindowsService(args); - System.exit(ERROR_NO_ERROR); - } - - ShutdownWindowsService(String[] args) - { - rc = ERROR_NO_ERROR; - - properties = new Properties(); - fileProperties = null; - fisProperties = null; - fileOutput = null; - - try - { - //file = new File("c:\\test7.log"); - //fw = new FileWriter(file); - - // Process the arguments - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Process the properties - if (ERROR_NO_ERROR == (rc = processProperties())) - { - rc = shutdownService(); - } - } - - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc); - //fw.flush(); - //fw.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - String sProperties; - File fileInstallDir = null; - int iEquals; - String sKey; - String sValue; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (args.length < 2) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - if (null == args[i]) - { - continue; - } - - log("arg[" + i + "] = " +args[i]); - - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR)) - { - // Make sure it is more the the param tag - if (args[i].length() <= INSTALL_DIR.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - - properties.setProperty(INSTALL_DIR_PROPERTY, sInstallDir); - } - - // is this the properties file param? - else if (args[i].startsWith(PROPERTY_FILE_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= PROPERTY_FILE_PARAM.length()) - { - return ERROR_BAD_PROPERTY_FILE_PARAM; - } - - sProperties = args[i].substring(PROPERTY_FILE_PARAM.length()).trim(); - fileProperties = new File(sProperties); - - // Make sure the properties file can be found - if (!fileProperties.exists()) - { - return ERROR_MISSING_PROPERTIES_FILE; - } - - // Read the properties - try - { - fisProperties = new FileInputStream(fileProperties); - properties.load(fisProperties); - } - catch (IOException ioe) - { - return ERROR_UNABLE_TO_READ_PROPERTIES; - } - } - - // Handle additional parameters - else - { - if (-1 == (iEquals = args[i].indexOf("=")) || - 0 == iEquals || - args[i].length() == iEquals) - { - return ERROR_BAD_PROPERTY_PARAM; - } - sKey = args[i].substring(0, iEquals); - sValue = args[i].substring(iEquals + 1); - properties.setProperty(sKey, sValue); - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - // Note: the properties file parameter is optional - - return ERROR_NO_ERROR; - } - - int processProperties() - { - try - { - Enumeration e; - String sKey; - String sValue; - - e = properties.propertyNames(); - - while (e.hasMoreElements()) - { - sKey = (String)e.nextElement(); - sValue = (String)properties.get(sKey); - - log("Property key = " + sKey + " Value = " + sValue); - } - } - catch (Exception ex1) - { - return -111; - } - - return ERROR_NO_ERROR; - } - - int shutdownService() - { - String sExe = (String)properties.get("TOMCAT5"); - String sCommand = ""; - int iReturn = ERROR_NO_ERROR; - - sCommand = sExe + " //SS//CasaAuthTokenService"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - sCommand = sExe + " //DS//CasaAuthTokenService"; - if (ERROR_NO_ERROR != (iReturn = invokeCommand(sCommand))) - { - return iReturn; - } - - return ERROR_NO_ERROR; - } - - int invokeCommand(String sCommand) - { - Process p; - int rc; - - log("invoke command: " + sCommand); - Runtime runtime = Runtime.getRuntime(); - try - { - p = runtime.exec(sCommand); - try - { - rc = p.waitFor(); - log("invoke command return code: " + rc); - } - catch (InterruptedException ie) - { - log(ERROR_EXEC_INTERRUPTED, sCommand); - return ERROR_EXEC_INTERRUPTED; - } - } - catch (IOException e) - { - log("IOException"); - return ERROR_EXEC_FAILED; - } - - return ERROR_NO_ERROR; - } - - - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 4 expected"; - break; - case ERROR_IO_EXCEPTION: - sMessage = "IOException"; - break; - case ERROR_EXEC_FAILED: - sMessage = "Exec failed"; - break; - case ERROR_EXEC_INTERRUPTED: - sMessage = "Exec interrupted"; - break; - case ERROR_UNABLE_TO_READ_PROPERTIES: - sMessage = "nable to read properties"; - break; - case ERROR_MISSING_INSTALL_DIR: - sMessage = "Missing install directory"; - break; - case ERROR_INSTALL_DIR_NOT_A_DIR: - sMessage = "Install directory is not a directory"; - break; - case ERROR_BAD_INSTALL_DIR_PARAM: - sMessage = "Bad install directory parameter"; - break; - case ERROR_BAD_PROPERTY_FILE_PARAM: - sMessage = "Bad property file parameter"; - break; - case ERROR_MISSING_PROPERTIES_FILE: - sMessage = "Missing properties file"; - break; - case ERROR_MISSING_INSTALL_DIR_PARAM: - sMessage = "Missing install directory parameter"; - break; - case ERROR_MISSING_PROPERTY_FILE_PARAM: - sMessage = "Missing property file parameter"; - break; - case ERROR_BAD_PROPERTY_PARAM: - sMessage = "Bad property parameter"; - break; - case ERROR_EXCEPTION: - sMessage = "Exception"; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/UpdateWarFile/Makefile.am b/CASA-auth-token/server-java/package/windows/UpdateWarFile/Makefile.am deleted file mode 100644 index 645e5532..00000000 --- a/CASA-auth-token/server-java/package/windows/UpdateWarFile/Makefile.am +++ /dev/null @@ -1,77 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Greg Richardson -# -####################################################################### - -SUBDIRS = - -DIST_SUBDIRS = - -EXTRA_DIST = UpdateWarFile.java - -if DEBUG -TARGET_CFG = Debug -DEBUG = -g -else -TARGET_CFG = Release -DEBUG = -g:none -endif - -PACKAGE = UpdateWarFile -TARGET_FILE = $(PACKAGE).class -LOG_FILE = $(PACKAGE).log -JAVAFILES = UpdateWarFile.java -BUILDDIR = bin/$(TARGET_CFG) -CLASSES = $(addprefix $(BUILDDIR)/, $(JAVAFILES:%.java=%.class)) - -.PHONY: package package-clean package-install package-uninstall - -all: $(BUILDDIR) $(CLASSES) - -$(BUILDDIR)/%.class: %.java - @rm -f $(LOG_FILE) $@ - @echo [======== Compiling $@ ========] - @javac $(DEBUG) -d $(BUILDDIR) $< 2> $(LOG_FILE) - @echo $$CMD; \ - if eval $$CMD; then \ - ls -l $(BUILDDIR)/$(TARGET_FILE); \ - cp $(BUILDDIR)/$(TARGET_FILE) bin; \ - else \ - grep -a "ERROR:" $(LOG_FILE); \ - fi - -$(BUILDDIR): - [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) - - -package-clean clean-local: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -clean: - rm -rf bin/Release/* bin/Release bin/Debug/* bin/Debug bin/* bin *.log - -distclean-local: package-clean - rm -f Makefile - -maintainer-clean-local: - rm -f Makefile.in - - - diff --git a/CASA-auth-token/server-java/package/windows/UpdateWarFile/UpdateWarFile.java b/CASA-auth-token/server-java/package/windows/UpdateWarFile/UpdateWarFile.java deleted file mode 100644 index 96a61c77..00000000 --- a/CASA-auth-token/server-java/package/windows/UpdateWarFile/UpdateWarFile.java +++ /dev/null @@ -1,444 +0,0 @@ -/*********************************************************************** - * - * Copyright (C) 2006 Novell, Inc. All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, Novell, Inc. - * - * To contact Novell about this file by physical or electronic mail, - * you may find current contact information at www.novell.com. - * - * Author: Greg Richardson - * - ***********************************************************************/ - - -import java.lang.Throwable; -import java.lang.NullPointerException; -import java.util.*; -import java.net.*; -import java.io.*; -import java.util.zip.*; -import java.util.jar.*; - -/** - * Summary description for UpdateWarFile - */ -public class UpdateWarFile -{ - final static String INSTALL_DIR_PARAM = "ATS_INSTALL_DIR="; - - final static int ERROR_NO_ERROR = 0; - final static int ERROR_IO_EXCEPTION = -1; - final static int ERROR_INVALID_NUMBER_OF_PARAMS = -2; - final static int ERROR_BAD_INSTALL_DIR_PARAM = -3; - final static int ERROR_MISSING_INSTALL_DIR = -4; - final static int ERROR_INSTALL_DIR_NOT_A_DIR = -5; - final static int ERROR_MISSING_INSTALL_DIR_PARAM = -6; - final static int ERROR_WAR_TEMPLATE_FILE_MISSING = -7; - final static int ERROR_NEW_JAR_CANNOT_BE_REPLACED = -8; - final static int ERROR_JAR_COPY_FAILED = -9; - final static int ERROR_CREATE_WAR_FILE_FAILED = -10; - final static int ERROR_CREATE_WAR_FOS_FAILED = -11; - final static int ERROR_OPEN_JAR_TEMPLATE_FAILED = -12; - final static int ERROR_JOS_FLUSH_FAILED = -13; - final static int ERROR_ADD_FILE_TO_JAR_FAILED = -14; - final static int ERROR_JOS_CLOSE_FAILED = -15; - final static int ERROR_FOS_CLOSE_FAILED = -16; - final static int ERROR_JFTEMPLATE_CLOSE_FAILED = -17; - final static int ERROR_EXCEPTION = -18; - - String sInstallDir; - //File file; - //FileWriter fw; - int rc; - - public static void main(String[] args) - { - UpdateWarFile p = new UpdateWarFile(args); - System.exit(p.rc); - } - - UpdateWarFile(String[] args) - { - sInstallDir = null; - - try - { - //file = new File("c:\\test3.log"); - //fw = new FileWriter(file); - - log("Here we go: " + args.length); - for (int i = 0; i < args.length; i++) - { - log("Arg " + i + " = " + args[i]); - } - - // Process the arguments - if (ERROR_NO_ERROR == (rc = processArgs(args))) - { - // Create the modified war file - rc = createWarFile(); - } - } - catch (Exception e) - { - rc = ERROR_EXCEPTION; - } - finally - { - try - { - log(rc); - //fw.flush(); - //fw.close(); - } - catch (Exception e1) - { - } - } - } - - int processArgs(String[] argsOld) - { - File fileInstallDir = null; - int iOld; - int i; - String args[] = new String[argsOld.length]; - int iNew; - - log("Original arg count " + argsOld.length); - for (i = 0; i < argsOld.length; i++) - { - log("Arg " + i + " = " + argsOld[i] + "\r\n"); - } - - // Validate the number of parameters - if (args.length < 1) - { - return ERROR_INVALID_NUMBER_OF_PARAMS; - } - - iNew = -1; - for (iOld = 0; iOld < argsOld.length; iOld++) - { - if (0 <= argsOld[iOld].indexOf("=")) - { - iNew++; - args[iNew] = argsOld[iOld]; - for (i = iOld + 1; i < argsOld.length && (-1 == argsOld[i].indexOf("=")); i++) - { - args[iNew] += " " + argsOld[i]; - } - } - } - - log("New arg count " + args.length); - for (i = 0; i < args.length; i++) - { - log("arg[" + i + "] = " + args[i]); - - // is this the install dir param? - if (args[i].startsWith(INSTALL_DIR_PARAM)) - { - // Make sure it is more than the param tag - if (args[i].length() <= INSTALL_DIR_PARAM.length()) - { - return ERROR_BAD_INSTALL_DIR_PARAM; - } - - sInstallDir = args[i].substring(INSTALL_DIR_PARAM.length()).trim(); - fileInstallDir = new File(sInstallDir); - - // Make sure the install dir can be found - if (!fileInstallDir.exists()) - { - return ERROR_MISSING_INSTALL_DIR; - } - - // Make sure the install dir is a directory - if (!fileInstallDir.isDirectory()) - { - return ERROR_INSTALL_DIR_NOT_A_DIR; - } - } - } - - // Make sure we got an install dir - if (null == fileInstallDir) - { - return ERROR_MISSING_INSTALL_DIR_PARAM; - } - - return ERROR_NO_ERROR; - } - - int createWarFile() - { - String sWarTemplate = sInstallDir + "ats\\etc\\svc\\templates\\CasaAuthTokenSvc.war"; - String sWarNew = sInstallDir + "ats\\catalinabase\\webapps\\CasaAuthTokenSvc.war"; - File fileWarTemplate = new File(sWarTemplate);; - File fileWarNew = new File(sWarNew); - FileOutputStream fosWarNew = null; - ZipOutputStream josWarNew = null; - ZipFile jfTemplate = null; - int rc = ERROR_NO_ERROR; - - // Ensure that the war template exists - log("looking for war template: " + sWarTemplate); - if (!fileWarTemplate.exists()) - { - rc = ERROR_WAR_TEMPLATE_FILE_MISSING; - } - - if (rc == ERROR_NO_ERROR) - { - // Ensure that the new jar name does not exist - if (fileWarNew.exists()) - { - log("war file already exists: " + sWarNew); - if (!fileWarNew.delete()) - { - log("could not delete war file: " + sWarNew); - rc = ERROR_NEW_JAR_CANNOT_BE_REPLACED; - } - } - } - - if (rc == ERROR_NO_ERROR) - { - // Create/open the new jar - try - { - log("create new war file output stream: " + sWarNew); - fosWarNew = new FileOutputStream(fileWarNew); - josWarNew = new ZipOutputStream(fosWarNew); - } - catch (IOException ioe0) - { - log(ioe0.toString()); - rc = ERROR_CREATE_WAR_FOS_FAILED; - } - } - - if (rc == ERROR_NO_ERROR) - { - // Open the old jar - try - { - jfTemplate = new ZipFile(sWarTemplate); - } - catch (IOException ioe1) - { - rc = ERROR_OPEN_JAR_TEMPLATE_FAILED; - } - } - - if (rc == ERROR_NO_ERROR) - { - // Transfer the files - rc = moveFilesFromJarToJar(josWarNew, jfTemplate); - } - - // Add the files - if (rc == ERROR_NO_ERROR) - { - int i; - String [] rgsFilesToAdd = new String[1]; - rgsFilesToAdd[0] = sInstallDir + "ats\\etc\\svc\\templates\\casa_crypto.properties"; - String [] rgsNames = new String[1]; - rgsNames[0] = "WEB-INF/classes/casa_crypto.properties"; - for (i = 0; i < rgsFilesToAdd.length; i++) - { - log("Adding file: " + rgsFilesToAdd[i] + " with name " + rgsNames[i]); - rc = addFileToJar(rgsFilesToAdd[i], rgsNames[i], josWarNew); - } - } - - // Close up - if (null != josWarNew) - { - try - { - josWarNew.flush(); - } - catch (IOException ioe2) - { - rc = ERROR_JOS_FLUSH_FAILED; - } - try - { - josWarNew.close(); - } - catch (IOException ioe3) - { - rc = ERROR_JOS_CLOSE_FAILED; - } - try - { - fosWarNew.close(); - } - catch (IOException ioe4) - { - rc = ERROR_FOS_CLOSE_FAILED; - } - } - if (null != jfTemplate) - { - try - { - jfTemplate.close(); - } - catch (IOException ioe5) - { - rc = ERROR_JFTEMPLATE_CLOSE_FAILED; - } - } - - return rc; - } - - int moveFilesFromJarToJar(ZipOutputStream josDst, ZipFile jfSrc) - { - int rc = ERROR_NO_ERROR; - try - { - Enumeration entries = jfSrc.entries(); - ZipEntry jeLoop; - InputStream isLoop; - ZipEntry zeIndex; - int bRead; - byte [] b = new byte[4096]; - - while (entries.hasMoreElements()) - { - jeLoop = (ZipEntry)entries.nextElement(); - - // Skip WEB-INF/classes/cypto.properties - if (jeLoop.getName().equalsIgnoreCase("WEB-INF/classes/casa_crypto.properties")) - { - log("skipping: " + "WEB-INF/classes/casa_crypto.properties"); - continue; - } - - // Move the rest of the files over - else - { - log("Transferring jar file: " + jeLoop.getName()); - - // Create the input stream - isLoop = jfSrc.getInputStream(jeLoop); - - // Set up the output stream - zeIndex = new ZipEntry(jeLoop.getName()); - josDst.putNextEntry( zeIndex); - - // Transfer the file contents - while (-1 != (bRead = isLoop.read(b))) - { - josDst.write(b, 0, bRead); - } - - // all done - josDst.closeEntry(); - isLoop.close(); - } - } - } - catch (Exception e) - { - rc = ERROR_JAR_COPY_FAILED; - } - return rc; - } - - int addFileToJar(String sFilename, String sName, ZipOutputStream josJarNew) - { - FileInputStream fis; - ZipEntry je; - int bRead; - byte [] b = new byte[4096]; - int rc = ERROR_NO_ERROR; - - try - { - // Create the input stream - fis = new FileInputStream(sFilename); - - // Set up the output stream - je = new ZipEntry(sName); - josJarNew.putNextEntry(je); - - // Tansfer the contents of the file - while (-1 != (bRead = fis.read(b))) - { - josJarNew.write(b, 0, bRead); - } - - // All done - fis.close(); - josJarNew.closeEntry(); - } - catch (Exception e) - { - log(e.toString()); - rc = ERROR_ADD_FILE_TO_JAR_FAILED; - } - return rc; - } - - void log(int err) - { - log(err, null); - } - - void log(int err, String s) - { - String sMessage = ""; - - switch (err) - { - case ERROR_NO_ERROR: - sMessage = "No error"; - break; - case ERROR_INVALID_NUMBER_OF_PARAMS: - sMessage = "Invalid number of parameters: 1make expected"; - break; - case ERROR_EXCEPTION: - sMessage = "Exception"; - break; - default: - sMessage = "Unknown error: " + err; - break; - } - - if (null != s) - { - sMessage = sMessage + s; - } - log(sMessage); - } - - void log(String s) - { - /* - try - { - fw.write(this.getClass().getName() + ": " + s + "\r\n"); - } - catch (IOException ioe) - { - } - */ - } -} diff --git a/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.sln b/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.sln index cbe6a008..8646d955 100644 --- a/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.sln +++ b/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.sln @@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "server-java_msi", "server-java_msi.vdproj", "{124289E1-BD76-485B-A779-C2372332D538}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CommandLauncher", "..\CommandLauncher\CommandLauncher.vcproj", "{B52EF84A-D745-4637-9F59-DBD6E21C179C}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Mixed Platforms = Debug|Mixed Platforms @@ -27,16 +25,6 @@ Global {124289E1-BD76-485B-A779-C2372332D538}.Release|Win32.Build.0 = Release {124289E1-BD76-485B-A779-C2372332D538}.Release|x86.ActiveCfg = Release {124289E1-BD76-485B-A779-C2372332D538}.Release|x86.Build.0 = Release - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Debug|Mixed Platforms.Build.0 = Debug|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Debug|Win32.ActiveCfg = Debug|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Debug|Win32.Build.0 = Debug|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Debug|x86.ActiveCfg = Debug|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Release|Mixed Platforms.ActiveCfg = Release|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Release|Mixed Platforms.Build.0 = Release|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Release|Win32.ActiveCfg = Release|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Release|Win32.Build.0 = Release|Win32 - {B52EF84A-D745-4637-9F59-DBD6E21C179C}.Release|x86.ActiveCfg = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.vdproj b/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.vdproj index 1890c38d..be7f510e 100644 --- a/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.vdproj +++ b/CASA-auth-token/server-java/package/windows/server-java_msi/server-java_msi.vdproj @@ -13,18 +13,6 @@ "SccProvider" = "8:" "Hierarchy" { - "Entry" - { - "MsmKey" = "8:_030C11D4F2904ED48922FF0F61475129" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_05B42F8169574638A494BA1F205048CC" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } "Entry" { "MsmKey" = "8:_05D2DB53BC0841469C54F54C7D2155DD" @@ -45,19 +33,25 @@ } "Entry" { - "MsmKey" = "8:_1B3A4C8191564F31884500B4CE426618" + "MsmKey" = "8:_1BAF79282CEA4AC38841EAE3919040F6" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_26775E30E3134CB48E98A16974BAF443" + "MsmKey" = "8:_2029A23993974E62B6811EA743207678" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_2C85DE6804444BB785CB2D95EBC7FFAE" + "MsmKey" = "8:_23DA938F915046A189AFBB6DC19A8CF0" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_24A22B6D73A54BE79D1873F506B2F030" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } @@ -69,12 +63,6 @@ } "Entry" { - "MsmKey" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_4023D519AC024666B875F39FEE70302D" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -93,42 +81,12 @@ } "Entry" { - "MsmKey" = "8:_43F51B14BBCA4E0A9786556A539FD88F" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_4594A449DFB94B1B8C326E3DC0B00919" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_496687043FE94A48AC4C31E22097E863" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_55AF3B67412A49E3A568102FDADDC2FE" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_5B105FED430E4D998914B3562D4A8EA1" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_715C87920D7C48DFA8263A91607BF53E" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_87CFFF879BA84622AFDF41C41DD8DE5D" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -153,12 +111,6 @@ } "Entry" { - "MsmKey" = "8:_92E771BD45734E15BF5DB9A32141219F" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_9B07C9C739B64948A6AA5E99579F4F82" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -183,55 +135,25 @@ } "Entry" { - "MsmKey" = "8:_A1EF9574964440CA997E320451B0AB88" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_A7F66EC5FDCD4D84AE61CB9A551175BA" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_ADF699EF93AE477F94571E0E50364B00" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_B29E25690B014C0B846CFC4698D08846" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_B33CF4351D5E427D9F3457929AFB1CFE" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_B785154416ED4BB7A00CE5860A9FDBF8" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_BB09C9C504E14C50B4A761FCB0CB0E09" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_C7412C71954041018568B8F728496265" + "MsmKey" = "8:_CFF5F438A0B2496694AABA6C02A2D017" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_D9369AF50C944DF1AC2AEF0B94C98973" + "MsmKey" = "8:_D745651050154358A028D5BBFA483381" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } @@ -243,12 +165,6 @@ } "Entry" { - "MsmKey" = "8:_DAFBA4629740411F937078F987696E03" - "OwnerKey" = "8:_UNDEFINED" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_E00CC04C64B2411796A9318A7713874A" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -267,19 +183,37 @@ } "Entry" { + "MsmKey" = "8:_EB171807DAD44DD9ACB83C52CECBED3E" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_F307A6C84BE441EC8592F5E9E1F04CD3" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { "MsmKey" = "8:_FC13F305B3594CB983C4CA14BDC14B4A" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_FE57440CA07843E099766B2F73149381" + "MsmKey" = "8:_FC966201422A423BB9E50846F9954C87" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { - "MsmKey" = "8:_FFF1B42279C84C628F41C191D5DBD50F" + "MsmKey" = "8:_FDB70A3D994F4AF3A54FD372B4713571" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_FE57440CA07843E099766B2F73149381" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } @@ -350,440 +284,6 @@ { "CustomAction" { - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_02595416B509419086F13318E5A6E580" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - CasaIdenTokenSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\CasaIdenTokenSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:12" - "Identifier" = "8:_3F049460_54B8_46F3_900D_C389747E68EC" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_09510491144349109522DD24482B7174" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - server\\jks-store)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\keys\\server\\jks-store" - "EntryPoint" = "8:" - "Sequence" = "3:4" - "Identifier" = "8:_89BDE0E0_BA46_4A4D_9220_389BE70C05FF" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_0C4AE9D91D7D47208BF7E9E0CBB1710F" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - startup.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\startup.bat output=[TARGETDIR]ats\\bin\\startup.bat" - "EntryPoint" = "8:" - "Sequence" = "3:9" - "Identifier" = "8:_18F0776E_A735_4E77_B376_47F1F4F23F97" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_0FDC0BE5C7BB4F21BE2A35AFD7133779" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - startup.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\startup.bat" - "EntryPoint" = "8:" - "Sequence" = "3:8" - "Identifier" = "8:_C928E564_1DCE_4404_98A5_1FE085EC9446" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_25F52A1B54234255AB51404D52AA4CBE" - { - "Name" = "8:CommandLauncher.exe )InitConfigFile - ats.log)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] escape_path_chars=true propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\log4j.properties output=[TARGETDIR]ats\\etc\\log4j.properties" - "EntryPoint" = "8:" - "Sequence" = "3:17" - "Identifier" = "8:_EB425F32_F807_4C36_AC86_B75AEEEC7D29" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_36863141C9454EFC8202B71293813223" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - CasaSvcSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\CasaSvcSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:13" - "Identifier" = "8:_A739EC74_A674_4BD8_B872_AFF1DF991C21" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_457F14D6965540A081F31A1F841AFFB3" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - client\\jks-store)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\keys\\client\\jks-store" - "EntryPoint" = "8:" - "Sequence" = "3:3" - "Identifier" = "8:_EC4106EE_CF9E_45EB_B6E3_6FCE66653556" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_4A2EA62CF7E74BCF99C43F5A0C68CE7F" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - casa_crypto.properties) Must occur after UpdateWarFile" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties" - "EntryPoint" = "8:" - "Sequence" = "3:7" - "Identifier" = "8:_41435F8A_10DA_454F_AE4E_55B6EDC859B1" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_4AB953C8E8AA4E44B7A3D2DDD163C040" - { - "Name" = "8:CommandLauncher.exe (MungeCryptoPropertiesFilePath) Must occur after InitConfigFile for casa_crypto.properties and prior to UpdateWarFile" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin MungeCryptoPropertiesFilePath input=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties.munge output=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties" - "EntryPoint" = "8:" - "Sequence" = "3:5" - "Identifier" = "8:_489F695D_617D_408B_A286_9096FF4C6030" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_529AA37D245B449F931A370D031F1328" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - server.xml)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] template=[TARGETDIR]ats\\etc\\svc\\templates\\server-sun.xml output=[TARGETDIR]ats\\catalinabase\\conf\\server.xml" - "EntryPoint" = "8:" - "Sequence" = "3:3" - "Identifier" = "8:_55B66D91_2329_429C_883B_90948337E433" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_6856EF9C699743C888919E8E4A66C24C" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - catalinabase\\logs)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\catalinabase\\logs filter=.log" - "EntryPoint" = "8:" - "Sequence" = "3:7" - "Identifier" = "8:_E6C59EBB_D6D2_48DC_A2C5_113AF9FEA805" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_79E2F134079A4BF0B250AD6842157864" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - server.xml)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\catalinabase\\conf\\server.xml" - "EntryPoint" = "8:" - "Sequence" = "3:5" - "Identifier" = "8:_A9D4BDAB_E372_45CF_B5F5_F99B51BABADD" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_89821E71155946E687F31736E33F4DB7" - { - "Name" = "8:CommandLauncher.exe (ServerKeystoreSetup)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin ServerKeystoreSetup installdir=[TARGETDIR] propertyfile=[PROPERTYFILE]" - "EntryPoint" = "8:" - "Sequence" = "3:1" - "Identifier" = "8:_BD8E6CE6_3A8A_422F_92E2_AE38B360F1D9" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_9BBF79DF235045B88BA9523B7DF92CAB" - { - "Name" = "8:CommandLauncher.exe (ShutdownWindowsService)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin ShutdownWindowsService installdir=[TARGETDIR] propertyfile=[PROPERTYFILE]" - "EntryPoint" = "8:" - "Sequence" = "3:1" - "Identifier" = "8:_B3A6BA0F_E061_4439_9858_14F6DA35353D" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_A374DE89164249E0BDB101D9571CF8E9" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - CasaSvcSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\CasaSvcSettingsEditor.bat output=[TARGETDIR]ats\\bin\\CasaSvcSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:14" - "Identifier" = "8:_2E92C5A6_F77B_4CDA_A4EB_7819264E6DA9" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_A4E3ADA134304D4EA9BB9C104FE4629C" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - svc.settings)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\svc\\svc.settings" - "EntryPoint" = "8:" - "Sequence" = "3:14" - "Identifier" = "8:_FEF3A1C8_7D1E_4BA6_A4B7_D6285DF69D92" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_AB70804AFE244365A9C3ED7DA5656DE3" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - shutdown.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\shutdown.bat" - "EntryPoint" = "8:" - "Sequence" = "3:9" - "Identifier" = "8:_E392726C_43F4_4233_B46D_D0488AACB842" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_AE2874BFCE6B428B9B16A9C5556C632E" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - CasaAuthPolicyEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\CasaAuthPolicyEditor.bat output=[TARGETDIR]ats\\bin\\CasaAuthPolicyEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:11" - "Identifier" = "8:_AC56AE2C_72B9_43DD_BEEF_7C3CD286D8AE" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_B0B10FA0B8764388BBD2E27EF9369BD1" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - shutdown.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\shutdown.bat output=[TARGETDIR]ats\\bin\\shutdown.bat" - "EntryPoint" = "8:" - "Sequence" = "3:10" - "Identifier" = "8:_03320D51_6BDF_4F8C_B6C0_214BF474A4C7" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_B9B971E2D7DC41D1888E7896C4E29984" - { - "Name" = "8:CommandLauncher.exe (UpdateWarFile) Must occur after MungeCryptoPropertiesFilePath" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin UpdateWarFile ATS_INSTALL_DIR=[TARGETDIR]" - "EntryPoint" = "8:" - "Sequence" = "3:6" - "Identifier" = "8:_20F8E908_8BBA_40B5_B8AD_76B2F6C7A562" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_BE34098F060F40C4B76CF65CCCC7B8C6" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - casaatsdSigningCert)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\keys\\casaatsdSigningCert" - "EntryPoint" = "8:" - "Sequence" = "3:2" - "Identifier" = "8:_6A3F7F90_E1A4_4824_8AB1_ADD1485CD413" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_C085F74CD409462F8662188E243C3B3E" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - svc.setting)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\svc.settings output=[TARGETDIR]ats\\etc\\svc\\svc.settings" - "EntryPoint" = "8:" - "Sequence" = "3:15" - "Identifier" = "8:_276FE83B_55B4_4779_B844_1E46693FBDE3" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_CBD36E7C65454FAEAFAFBB089F552379" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - casa_crypto.properties) Must occur prior to MungeCryptoPropertiesFilePath" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] template=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties.template output=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties.munge" - "EntryPoint" = "8:" - "Sequence" = "3:4" - "Identifier" = "8:_52B37947_0117_4E54_A3CE_CE1092EF5AFF" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_D79DF1FB77624071BF5551DB76E3FC15" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - CasaIdenTokenSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\CasaIdenTokenSettingsEditor.bat output=[TARGETDIR]ats\\bin\\CasaIdenTokenSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:13" - "Identifier" = "8:_FD7621D3_DCE1_4D53_855E_7F3A809067BB" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_E127B13AEB1E4F6ABFDE9FF0E6309065" - { - "Name" = "8:CommandLauncher.exe (ClientKeystoreSetup)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin ClientKeystoreSetup installdir=[TARGETDIR] propertyfile=[PROPERTYFILE]" - "EntryPoint" = "8:" - "Sequence" = "3:2" - "Identifier" = "8:_26CA921F_983F_4174_9FBE_0CA0D335BF56" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_E40220C987784FAD9A06EE2D5DE2EE04" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - casa_crypto.properties.munge) Must occur after MungeCryptoPropertiesFilePath" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\etc\\svc\\templates\\casa_crypto.properties.munge" - "EntryPoint" = "8:" - "Sequence" = "3:8" - "Identifier" = "8:_9B4A731D_B624_4E26_9350_EEEEA32D8892" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_F400F2380DAC4E98A4280B67E7640B13" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - CasaAuthPolicyEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\CasaAuthPolicyEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:10" - "Identifier" = "8:_FF871556_C261_4E94_B045_E57BD9740462" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_F7123131894544C3981B265A568C3288" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - CasaAuthTokenSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\bin\\CasaAuthTokenSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:11" - "Identifier" = "8:_1D4E8737_1B23_4CEE_BE66_5F30AAF659A8" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_F866EA13E789416D8C4A00BF1AF426BB" - { - "Name" = "8:CommandLauncher.exe (InitConfigFile - CasaAuthTokenSettingsEditor.bat)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin InitConfigFile ATS_INSTALL_DIR=[TARGETDIR] propertyfile=[PROPERTYFILE] template=[TARGETDIR]ats\\etc\\svc\\templates\\CasaAuthTokenSettingsEditor.bat output=[TARGETDIR]ats\\bin\\CasaAuthTokenSettingsEditor.bat" - "EntryPoint" = "8:" - "Sequence" = "3:12" - "Identifier" = "8:_91DE6CAB_D3AF_4332_B355_F25852979834" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_FA5911D2143A418289CC544BBA37B08B" - { - "Name" = "8:CommandLauncher.exe (DeleteFile - CasaAuthTokenSvc.war)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:4" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin DeleteFile file=[TARGETDIR]ats\\catalinabase\\webapps\\CasaAuthTokenSvc.war" - "EntryPoint" = "8:" - "Sequence" = "3:6" - "Identifier" = "8:_4DD8C40A_3468_403A_BBAB_0C076D0C9FEC" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } - "{4AA51A2D-7D85-4A59-BA75-B0809FC8B380}:_FDB694C476A043499BB15516B7E7C6B2" - { - "Name" = "8:CommandLauncher.exe (SetupAsWindowsService)" - "Condition" = "8:" - "Object" = "8:_32E2D317FBCD4B25904D5402E547B8A8" - "FileType" = "3:2" - "InstallAction" = "3:1" - "Arguments" = "8:[ATS_JAVA_EXE] -cp [TARGETDIR]ats\\bin SetupAsWindowsService installdir=[TARGETDIR] propertyfile=[PROPERTYFILE]" - "EntryPoint" = "8:" - "Sequence" = "3:16" - "Identifier" = "8:_61CF50D6_CFBF_4737_A055_8FE995A2D184" - "InstallerClass" = "11:FALSE" - "CustomActionData" = "8:" - } } "DefaultFeature" { @@ -799,46 +299,6 @@ } "File" { - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_030C11D4F2904ED48922FF0F61475129" - { - "SourcePath" = "8:..\\..\\..\\Svc\\templates\\jaas.conf" - "TargetName" = "8:jaas.conf" - "Tag" = "8:" - "Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_05B42F8169574638A494BA1F205048CC" - { - "SourcePath" = "8:..\\..\\..\\Svc\\sampleConf\\auth.policy" - "TargetName" = "8:auth.policy" - "Tag" = "8:" - "Folder" = "8:_2A9BEDE164B4446387D182559E2AAB06" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_05D2DB53BC0841469C54F54C7D2155DD" { "SourcePath" = "8:..\\..\\..\\Svc\\templates\\windows\\CasaAuthPolicyEditor.bat" @@ -899,12 +359,12 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_1B3A4C8191564F31884500B4CE426618" + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_1BAF79282CEA4AC38841EAE3919040F6" { - "SourcePath" = "8:..\\ClientKeystoreSetup\\bin\\ClientKeystoreSetup.class" - "TargetName" = "8:ClientKeystoreSetup.class" + "SourcePath" = "8:..\\..\\..\\lib\\java\\AtsConfigurator.jar" + "TargetName" = "8:AtsConfigurator.jar" "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" + "Folder" = "8:_9A312EC6BBB645B59F0B6CB0BAE8C557" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" @@ -919,29 +379,9 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_26775E30E3134CB48E98A16974BAF443" + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_2029A23993974E62B6811EA743207678" { - "SourcePath" = "8:..\\..\\..\\Jaas\\build\\CasaJaasSupport.jar" - "TargetName" = "8:CasaJaasSupport.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_2C85DE6804444BB785CB2D95EBC7FFAE" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaAuthTokenSvc.war" + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaAuthTokenSvc.war" "TargetName" = "8:CasaAuthTokenSvc.war" "Tag" = "8:" "Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB" @@ -959,6 +399,46 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_23DA938F915046A189AFBB6DC19A8CF0" + { + "SourcePath" = "8:..\\..\\..\\Svc\\sampleConf\\authtoken.settings" + "TargetName" = "8:authtoken.settings" + "Tag" = "8:" + "Folder" = "8:_2A9BEDE164B4446387D182559E2AAB06" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_24A22B6D73A54BE79D1873F506B2F030" + { + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaJaasSupport.jar" + "TargetName" = "8:CasaJaasSupport.jar" + "Tag" = "8:" + "Folder" = "8:_CC52EBEF04E54F278CAE7017710EABBF" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_2FEF66C0D33E4A1D99EDC50E7623C244" { "SourcePath" = "8:..\\..\\..\\Svc\\external\\xmlsec\\xml-security-1_4_0\\libs\\xercesImpl.jar" @@ -979,26 +459,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_32E2D317FBCD4B25904D5402E547B8A8" - { - "SourcePath" = "8:..\\CommandLauncher\\bin\\CommandLauncher.exe" - "TargetName" = "8:CommandLauncher.exe" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4023D519AC024666B875F39FEE70302D" { "SourcePath" = "8:..\\..\\..\\Svc\\tomcat5\\conf\\windows\\server-sun.xml" @@ -1059,66 +519,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_43F51B14BBCA4E0A9786556A539FD88F" - { - "SourcePath" = "8:..\\DeleteFile\\bin\\DeleteFile$1.class" - "TargetName" = "8:DeleteFile$1.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4594A449DFB94B1B8C326E3DC0B00919" - { - "SourcePath" = "8:..\\DeleteFile\\bin\\DeleteFile.class" - "TargetName" = "8:DeleteFile.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_496687043FE94A48AC4C31E22097E863" - { - "SourcePath" = "8:..\\ServerKeystoreSetup\\bin\\ServerKeystoreSetup.class" - "TargetName" = "8:ServerKeystoreSetup.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_55AF3B67412A49E3A568102FDADDC2FE" { "SourcePath" = "8:..\\..\\..\\Svc\\external\\xmlsec\\xml-security-1_4_0\\LICENSE" @@ -1139,46 +539,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5B105FED430E4D998914B3562D4A8EA1" - { - "SourcePath" = "8:..\\UpdateWarFile\\bin\\UpdateWarFile.class" - "TargetName" = "8:UpdateWarFile.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_715C87920D7C48DFA8263A91607BF53E" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaAuthToken.jar" - "TargetName" = "8:CasaAuthToken.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_87CFFF879BA84622AFDF41C41DD8DE5D" { "SourcePath" = "8:..\\..\\..\\Svc\\sampleConf\\auth_mechanisms\\PwdAuthenticate\\mechanism.settings" @@ -1259,26 +619,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_92E771BD45734E15BF5DB9A32141219F" - { - "SourcePath" = "8:..\\..\\..\\Svc\\templates\\authtoken.settings" - "TargetName" = "8:authtoken.settings" - "Tag" = "8:" - "Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_9B07C9C739B64948A6AA5E99579F4F82" { "SourcePath" = "8:..\\..\\..\\Svc\\templates\\windows\\shutdown.bat" @@ -1359,66 +699,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A1EF9574964440CA997E320451B0AB88" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaAuthTokenSettingsEditor.jar" - "TargetName" = "8:CasaAuthTokenSettingsEditor.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A7F66EC5FDCD4D84AE61CB9A551175BA" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaIdenTokenSettingsEditor.jar" - "TargetName" = "8:CasaIdenTokenSettingsEditor.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_ADF699EF93AE477F94571E0E50364B00" - { - "SourcePath" = "8:..\\ShutdownWindowsService\\bin\\ShutdownWindowsService.class" - "TargetName" = "8:ShutdownWindowsService.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B29E25690B014C0B846CFC4698D08846" { "SourcePath" = "8:..\\..\\..\\Svc\\tomcat5\\conf\\catalina.properties" @@ -1439,46 +719,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B33CF4351D5E427D9F3457929AFB1CFE" - { - "SourcePath" = "8:..\\SetupAsWindowsService\\bin\\SetupAsWindowsService.class" - "TargetName" = "8:SetupAsWindowsService.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B785154416ED4BB7A00CE5860A9FDBF8" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaSvcSettingsEditor.jar" - "TargetName" = "8:CasaSvcSettingsEditor.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_BB09C9C504E14C50B4A761FCB0CB0E09" { "SourcePath" = "8:..\\..\\..\\Svc\\templates\\svc.settings" @@ -1499,12 +739,12 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C7412C71954041018568B8F728496265" + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_CFF5F438A0B2496694AABA6C02A2D017" { - "SourcePath" = "8:..\\MungeCryptoPropertiesFilePath\\bin\\MungeCryptoPropertiesFilePath.class" - "TargetName" = "8:MungeCryptoPropertiesFilePath.class" + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaAuthToken.jar" + "TargetName" = "8:CasaAuthToken.jar" "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" + "Folder" = "8:_CC52EBEF04E54F278CAE7017710EABBF" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" @@ -1519,12 +759,12 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D9369AF50C944DF1AC2AEF0B94C98973" + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D745651050154358A028D5BBFA483381" { - "SourcePath" = "8:..\\..\\..\\Svc\\sampleConf\\authtoken.settings" - "TargetName" = "8:authtoken.settings" + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaAuthTokenSettingsEditor.jar" + "TargetName" = "8:CasaAuthTokenSettingsEditor.jar" "Tag" = "8:" - "Folder" = "8:_2A9BEDE164B4446387D182559E2AAB06" + "Folder" = "8:_9A312EC6BBB645B59F0B6CB0BAE8C557" "Condition" = "8:" "Transitive" = "11:FALSE" "Vital" = "11:TRUE" @@ -1542,7 +782,7 @@ "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D945234C1C494DDCAB2C8537CE4D1C1C" { "SourcePath" = "8:..\\..\\..\\Svc\\windows\\casa_crypto.properties" - "TargetName" = "8:casa_crypto.properties.template" + "TargetName" = "8:casa_crypto.properties" "Tag" = "8:" "Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB" "Condition" = "8:" @@ -1559,26 +799,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DAFBA4629740411F937078F987696E03" - { - "SourcePath" = "8:..\\..\\..\\Svc\\build\\CasaAuthPolicyEditor.jar" - "TargetName" = "8:CasaAuthPolicyEditor.jar" - "Tag" = "8:" - "Folder" = "8:_516714B01FD34E218E009D96264F30AC" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_E00CC04C64B2411796A9318A7713874A" { "SourcePath" = "8:..\\..\\..\\Svc\\external\\xmlsec\\xml-security-1_4_0\\libs\\commons-logging.jar" @@ -1639,6 +859,46 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_EB171807DAD44DD9ACB83C52CECBED3E" + { + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaAuthPolicyEditor.jar" + "TargetName" = "8:CasaAuthPolicyEditor.jar" + "Tag" = "8:" + "Folder" = "8:_9A312EC6BBB645B59F0B6CB0BAE8C557" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F307A6C84BE441EC8592F5E9E1F04CD3" + { + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaSvcSettingsEditor.jar" + "TargetName" = "8:CasaSvcSettingsEditor.jar" + "Tag" = "8:" + "Folder" = "8:_9A312EC6BBB645B59F0B6CB0BAE8C557" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FC13F305B3594CB983C4CA14BDC14B4A" { "SourcePath" = "8:..\\..\\..\\Svc\\tomcat5\\conf\\catalina.policy" @@ -1659,6 +919,46 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FC966201422A423BB9E50846F9954C87" + { + "SourcePath" = "8:..\\..\\..\\Svc\\templates\\windows\\jaas.conf" + "TargetName" = "8:jaas.conf" + "Tag" = "8:" + "Folder" = "8:_DB2EB303AA7A4FA0874CCF7DE23125AB" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FDB70A3D994F4AF3A54FD372B4713571" + { + "SourcePath" = "8:..\\..\\..\\lib\\java\\CasaIdenTokenSettingsEditor.jar" + "TargetName" = "8:CasaIdenTokenSettingsEditor.jar" + "Tag" = "8:" + "Folder" = "8:_9A312EC6BBB645B59F0B6CB0BAE8C557" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FE57440CA07843E099766B2F73149381" { "SourcePath" = "8:..\\..\\..\\Svc\\tomcat5\\conf\\tomcat-users.xml" @@ -1679,26 +979,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FFF1B42279C84C628F41C191D5DBD50F" - { - "SourcePath" = "8:..\\InitConfigFile\\bin\\InitConfigFile.class" - "TargetName" = "8:InitConfigFile.class" - "Tag" = "8:" - "Folder" = "8:_62B357DC6D484761A18291FA3525320C" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:FALSE" - "IsolateTo" = "8:" - } } "FileType" { @@ -1715,297 +995,286 @@ "Property" = "8:TARGETDIR" "Folders" { - "{9EF0B969-E518-4E46-987F-47570745A589}:_8996F04D3E914165A7585825DEB128C0" + "{9EF0B969-E518-4E46-987F-47570745A589}:_6672F578FC954785AF6212C9A0B8D13D" { - "Name" = "8:ats" + "Name" = "8:etc" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_F8C6D47C719E4D28BE20CECB7E07C967" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_05589380C73241A7875FCEB38C092686" + { + "Name" = "8:keys" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_CE141E82D5F648AAAE0D93ABC127DFA2" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_9663EB7F97874D49B178C83EE6B0DCEE" + { + "Name" = "8:client" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_1420323B1AC64FC88D89BCF66B1FEF1D" + "Folders" + { + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_DF048378773F4EFFA47F094A8B8F3AFC" + { + "Name" = "8:server" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_ED2D7DBDF76D4D588F23DBEB10D75936" + "Folders" + { + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_2A9BEDE164B4446387D182559E2AAB06" + { + "Name" = "8:svc" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_9C9EF7591BB74B079B0D5414CEBAAE7E" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_71EDBA542F2C428982CCB5B15C05E1E9" + { + "Name" = "8:auth_mechanisms" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_C1D0E351D69B46B5BE526800EFB245D7" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_96829E9749114FC583E931E5B7854AA2" + { + "Name" = "8:PwdAuthenticate" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_D59826F5631C4E5B95D9AE4FD09657F1" + "Folders" + { + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_B58B29B4A15D4FCA8FD00296FAA78439" + { + "Name" = "8:Krb5Authenticate" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_B8DF0B3C57B44955BDEEF4B95AC116AA" + "Folders" + { + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_D83E2206536F4BF2AC6E1B7C9ED5F690" + { + "Name" = "8:enabled_services" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_F3DA30BA16B542868A07B8DA35CB2770" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_D587CC1FF79642B9BE914D2947F77316" + { + "Name" = "8:localhost" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_6CB9E39659A24E41ACE4B22852F970A9" + "Folders" + { + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_DB2EB303AA7A4FA0874CCF7DE23125AB" + { + "Name" = "8:templates" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_F8918E77776F4615B923B6AAE4B4A671" + "Folders" + { + } + } + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_9A312EC6BBB645B59F0B6CB0BAE8C557" + { + "Name" = "8:bin" "AlwaysCreate" = "11:TRUE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_EDD211BBCCE5434F827926703214A64B" + "Property" = "8:_CD69D77151604905951AABC0F3AC83E3" "Folders" { - "{9EF0B969-E518-4E46-987F-47570745A589}:_06F29B6BC8124B1AA88DF95E4527E390" + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_A0CA9DA1BEA44E9A9E8EBC358C7F9BE8" + { + "Name" = "8:catalinabase" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_E84C9FCD0AE548D08608CFF4080E3717" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_288DB9CAEC98434082D1533FD38C07A0" { - "Name" = "8:catalinabase" + "Name" = "8:work" "AlwaysCreate" = "11:TRUE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_E84C9FCD0AE548D08608CFF4080E3717" + "Property" = "8:_AE9950249CB6449683085CA92E554750" "Folders" { - "{9EF0B969-E518-4E46-987F-47570745A589}:_288DB9CAEC98434082D1533FD38C07A0" + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_5B43B0249E374FBDA5D4617DF24FCB0D" + { + "Name" = "8:shared" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_A1CEAF5DACDF458682517F5973CDA529" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_8153727775274F1691F6E97B76B59CF9" { - "Name" = "8:work" + "Name" = "8:libs" "AlwaysCreate" = "11:TRUE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_AE9950249CB6449683085CA92E554750" + "Property" = "8:_15FAABF334E04DA097AF1416E9E823AB" "Folders" { } } - "{9EF0B969-E518-4E46-987F-47570745A589}:_5B43B0249E374FBDA5D4617DF24FCB0D" + "{9EF0B969-E518-4E46-987F-47570745A589}:_EF57DECBA23A4E1B9D69535F76CC107A" { - "Name" = "8:shared" + "Name" = "8:classes" "AlwaysCreate" = "11:TRUE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_A1CEAF5DACDF458682517F5973CDA529" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_8153727775274F1691F6E97B76B59CF9" - { - "Name" = "8:libs" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_15FAABF334E04DA097AF1416E9E823AB" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_EF57DECBA23A4E1B9D69535F76CC107A" - { - "Name" = "8:classes" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_F4209C88D9994D35AEA60F9399B15046" - "Folders" - { - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_8FA3FD613F05448F8E21793E1417E64B" - { - "Name" = "8:logs" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_38406F586A754A4E9A9923D35E3AA608" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_B098A81A995B480D87F0B871A5D1101E" - { - "Name" = "8:temp" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_E1966EEBDB4C4BB9B3D791DFC6A97415" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_BEA2FF5389C04CB4933B5CE4E1C9DBB2" - { - "Name" = "8:conf" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_7221A88C0C4E4B8BA5AD9FCDF7B9E5A2" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_CC81EC31D39946D6A09BBC1F1EB10078" - { - "Name" = "8:Catalina" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_E799944389A3448BB25C5F2535A79728" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_D38C9DA6B35740B6961F5C97B5CF03A1" - { - "Name" = "8:localhost" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_7E27F8B4C19F488EAC41BA3A4DCF6E9B" - "Folders" - { - } - } - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_FE497877B0564D5180FC4A7716A649E8" - { - "Name" = "8:webapps" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_4B3200D3C55143E19625B58B16A6AF5C" + "Property" = "8:_F4209C88D9994D35AEA60F9399B15046" "Folders" { } } } } - "{9EF0B969-E518-4E46-987F-47570745A589}:_516714B01FD34E218E009D96264F30AC" + "{9EF0B969-E518-4E46-987F-47570745A589}:_8FA3FD613F05448F8E21793E1417E64B" { - "Name" = "8:lib" + "Name" = "8:logs" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_38406F586A754A4E9A9923D35E3AA608" + "Folders" + { + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_B098A81A995B480D87F0B871A5D1101E" + { + "Name" = "8:temp" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_E1966EEBDB4C4BB9B3D791DFC6A97415" + "Folders" + { + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_BEA2FF5389C04CB4933B5CE4E1C9DBB2" + { + "Name" = "8:conf" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_7221A88C0C4E4B8BA5AD9FCDF7B9E5A2" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_CC81EC31D39946D6A09BBC1F1EB10078" + { + "Name" = "8:Catalina" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_E799944389A3448BB25C5F2535A79728" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_D38C9DA6B35740B6961F5C97B5CF03A1" + { + "Name" = "8:localhost" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_7E27F8B4C19F488EAC41BA3A4DCF6E9B" + "Folders" + { + } + } + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_FE497877B0564D5180FC4A7716A649E8" + { + "Name" = "8:webapps" + "AlwaysCreate" = "11:TRUE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_4B3200D3C55143E19625B58B16A6AF5C" + "Folders" + { + } + } + } + } + "{9EF0B969-E518-4E46-987F-47570745A589}:_CC52EBEF04E54F278CAE7017710EABBF" + { + "Name" = "8:lib" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_168E54D12032489796CD7A843225EE70" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_7638BAE158EC4759991B2FC04061FADC" + { + "Name" = "8:external" "AlwaysCreate" = "11:FALSE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_168E54D12032489796CD7A843225EE70" + "Property" = "8:_E580B31319AE4C55BC31CFF84AF8C6AE" "Folders" { - "{9EF0B969-E518-4E46-987F-47570745A589}:_7638BAE158EC4759991B2FC04061FADC" + "{9EF0B969-E518-4E46-987F-47570745A589}:_7F0AE158BB53414DA5BB29F14E55EEBB" { - "Name" = "8:external" + "Name" = "8:apache.org" "AlwaysCreate" = "11:FALSE" "Condition" = "8:" "Transitive" = "11:FALSE" - "Property" = "8:_E580B31319AE4C55BC31CFF84AF8C6AE" + "Property" = "8:_B5D79599A831420BBDEBFD4FB0E2EA76" "Folders" { - "{9EF0B969-E518-4E46-987F-47570745A589}:_7F0AE158BB53414DA5BB29F14E55EEBB" - { - "Name" = "8:apache.org" - "AlwaysCreate" = "11:FALSE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_B5D79599A831420BBDEBFD4FB0E2EA76" - "Folders" - { - } - } - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_62B357DC6D484761A18291FA3525320C" - { - "Name" = "8:bin" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_CD69D77151604905951AABC0F3AC83E3" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_B6DCB5C115F54B359D25B1A722848DC7" - { - "Name" = "8:etc" - "AlwaysCreate" = "11:FALSE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_F8C6D47C719E4D28BE20CECB7E07C967" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_05589380C73241A7875FCEB38C092686" - { - "Name" = "8:keys" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_CE141E82D5F648AAAE0D93ABC127DFA2" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_9663EB7F97874D49B178C83EE6B0DCEE" - { - "Name" = "8:client" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_1420323B1AC64FC88D89BCF66B1FEF1D" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_DF048378773F4EFFA47F094A8B8F3AFC" - { - "Name" = "8:server" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_ED2D7DBDF76D4D588F23DBEB10D75936" - "Folders" - { - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_2A9BEDE164B4446387D182559E2AAB06" - { - "Name" = "8:svc" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_9C9EF7591BB74B079B0D5414CEBAAE7E" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_71EDBA542F2C428982CCB5B15C05E1E9" - { - "Name" = "8:auth_mechanisms" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_C1D0E351D69B46B5BE526800EFB245D7" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_96829E9749114FC583E931E5B7854AA2" - { - "Name" = "8:PwdAuthenticate" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_D59826F5631C4E5B95D9AE4FD09657F1" - "Folders" - { - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_B58B29B4A15D4FCA8FD00296FAA78439" - { - "Name" = "8:Krb5Authenticate" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_B8DF0B3C57B44955BDEEF4B95AC116AA" - "Folders" - { - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_D83E2206536F4BF2AC6E1B7C9ED5F690" - { - "Name" = "8:enabled_services" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_F3DA30BA16B542868A07B8DA35CB2770" - "Folders" - { - "{9EF0B969-E518-4E46-987F-47570745A589}:_D587CC1FF79642B9BE914D2947F77316" - { - "Name" = "8:localhost" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_6CB9E39659A24E41ACE4B22852F970A9" - "Folders" - { - } - } - } - } - "{9EF0B969-E518-4E46-987F-47570745A589}:_DB2EB303AA7A4FA0874CCF7DE23125AB" - { - "Name" = "8:templates" - "AlwaysCreate" = "11:TRUE" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Property" = "8:_F8918E77776F4615B923B6AAE4B4A671" - "Folders" - { - } - } } } } @@ -2029,14 +1298,14 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:CasaAuthTokenSvc" - "ProductCode" = "8:{A8C0CB21-B404-4B79-B076-ECA9AB23D80A}" - "PackageCode" = "8:{B0D90017-E0E4-4DAD-807A-F40C90AC5172}" - "UpgradeCode" = "8:{DCF8EE94-B530-4C96-9C74-CEA1A54769AF}" + "ProductCode" = "8:{612DE811-B264-4AD8-A604-F39BB12C2794}" + "PackageCode" = "8:{F09E6A3D-9390-4298-AD25-D741434E8039}" + "UpgradeCode" = "8:{C1AC5463-D9A1-46F2-BFFD-109DFDE54684}" "RestartWWWService" = "11:FALSE" "RemovePreviousVersions" = "11:FALSE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.0" + "ProductVersion" = "8:1.0.1" "Manufacturer" = "8:Novell" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" @@ -2549,5 +1818,8 @@ "ProjectOutput" { } + "VJSharpPlugin" + { + } } }