<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean,"/>
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
-<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <launchConfigurationWorkingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="working set" name="working set"> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/dist" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/hibernate.cfg.xml" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/log4j.xml" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/siman.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/conf/generated" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/labels.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/Test.class" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/struts.xml" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/som_en.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/spring" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/som.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman-Common/dist" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/SPlat/dist" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/jndi.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/labels_en.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/simer.properties" type="1"/> </launchConfigurationWorkingSet>}"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/>
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <launchConfigurationWorkingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" label="working set" name="working set"> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/SPlat/dist" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/WebContent/jap" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/jndi.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/labels.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/labels_en.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/log4j.xml" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/siman.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/som.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/som_en.properties" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/spring" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/build/classes/struts.xml" type="1"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/conf/generated" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman/dist" type="2"/> <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/Siman-Common/dist" type="2"/> </launchConfigurationWorkingSet>}"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/Siman/build.xml"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_20"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Siman"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Siman/build.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,clean"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Siman}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
</launchConfiguration>
<format property="time" pattern="${time.pattern}" />
</tstamp>
- <!-- ================================================= -->
- <!-- launcher: Build launcher jar -->
- <!-- ================================================= -->
- <target name="launcher" description="Builds launcher jar">
- <delete file="${siman.content.dir}/jap/splat-launcher.jar"/>
- <jar destfile="${siman.content.dir}/jap/splat-launcher.jar">
- <zipfileset dir="${siman.bin.dir}/classes">
- <include name="org/splat/launcher/**" />
- </zipfileset>
- <manifest>
+ <!-- ================================================= -->
+ <!-- launcher: Build launcher jar -->
+ <!-- ================================================= -->
+ <target name="launcher" depends="compile-java" description="Builds launcher jar">
+ <delete file="${siman.content.dir}/jap/splat-launcher.jar" />
+ <jar destfile="${siman.content.dir}/jap/splat-launcher.jar">
+ <zipfileset dir="${siman.bin.dir}/classes">
+ <include name="org/splat/launcher/**" />
+ </zipfileset>
+ <manifest>
<attribute name="Built-By" value="${app.author}" />
<attribute name="Version" value="${app.version}" />
- <attribute name="Built-Date" value="${timesimple}" />
- </manifest>
- </jar>
- </target>
+ <attribute name="Built-Date" value="${datesimple}" />
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- ================================================= -->
+ <!-- launcher: Sign launcher jar -->
+ <!-- ================================================= -->
+ <target name="sign-launcher" depends="launcher" description="Signs launcher jar">
+ <!-- jarsigner -verbose -keystore launcherkeystore -signedjar splat-signedlauncher.jar splat-launcher.jar launcheralias-->
+ <delete file="${siman.content.dir}/jap/splat-signedlauncher.jar" />
+ <signjar verbose="on" keystore="${siman.content.dir}/jap/launcherkeystore" signedjar="${siman.content.dir}/jap/splat-signedlauncher.jar" jar="${siman.content.dir}/jap/splat-launcher.jar" alias="launcheralias" storepass="launcher" />
+ </target>
- <!-- ================================================= -->
- <!-- siman-common: Build Siman-Common project -->
- <!-- ================================================= -->
- <target name="siman-common" description="Builds Siman-Common project">
- <ant dir="../${siman-common.project.name}" />
- </target>
+ <!-- ================================================= -->
+ <!-- siman-common: Build Siman-Common project -->
+ <!-- ================================================= -->
+ <target name="siman-common" description="Builds Siman-Common project">
+ <ant dir="../${siman-common.project.name}" />
+ </target>
<!-- ================================================= -->
<!-- copy-config: Copy parametrized config files -->
<copy-config mode="release" />
</target>
- <!-- ===================================================================== -->
- <!-- compile-java : compile the java classes -->
- <!-- ===================================================================== -->
- <target name="compile-java" depends="clean, siman-common" description="Builds the java classes">
- <echo message="Compile Siman java classes" />
-<!-- <delete dir="${siman.bin.dir}/temp" quiet="true"/>-->
- <mkdir dir="temp"/>
- <javac target="1.6" srcdir="${siman.src.dir}" destdir="temp" debug="${compiler.debug}"
- nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}"
- optimize="${compiler.optimize}" deprecation="${compiler.deprecation}">
- <classpath>
- <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.ext.dir}" includes="**/*" />
- <fileset dir="${basedir}/../${splat.project.name}/${splat.dist.dir}" includes="**/*" />
- <fileset dir="${basedir}/../${splat.project.name}/${splat.lib.dir}" includes="**/*" />
- <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.dist.dir}" includes="**/*" />
- <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.lib.dir}" includes="**/*" />
- <fileset dir="${siman.content.dir}/WEB-INF/lib" includes="**/*" />
- </classpath>
- <exclude name="test/**" />
- </javac>
- </target>
+ <!-- ===================================================================== -->
+ <!-- compile-java : compile the java classes -->
+ <!-- ===================================================================== -->
+ <target name="compile-java" depends="clean, siman-common" description="Builds the java classes">
+ <echo message="Compile Siman java classes" />
+ <!-- <delete dir="${siman.bin.dir}/temp" quiet="true"/>-->
+ <mkdir dir="temp" />
+ <javac target="1.6" srcdir="${siman.src.dir}" destdir="temp" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" optimize="${compiler.optimize}" deprecation="${compiler.deprecation}">
+ <classpath>
+ <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.ext.dir}" includes="**/*" />
+ <fileset dir="${basedir}/../${splat.project.name}/${splat.dist.dir}" includes="**/*" />
+ <fileset dir="${basedir}/../${splat.project.name}/${splat.lib.dir}" includes="**/*" />
+ <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.dist.dir}" includes="**/*" />
+ <fileset dir="${basedir}/../${siman-common.project.name}/${siman-common.lib.dir}" includes="**/*" />
+ <fileset dir="${siman.content.dir}/WEB-INF/lib" includes="**/*" />
+ </classpath>
+ <exclude name="test/**" />
+ </javac>
+ </target>
<!-- ===================================================================== -->
<!-- build-dist : Create the war file -->
<!-- ===================================================================== -->
- <target name="build-war" depends="clean, siman-common, compile-java, release-config" description="Builds the WAR distribution">
+ <target name="build-war" depends="clean, sign-launcher, launcher, siman-common, compile-java, release-config" description="Builds the WAR distribution">
<echo message="build ${webapp.name}.war" />
<mkdir dir="${siman.dist.dir}" />