1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 16:26:11 +02:00

Updating custom and generic targets to handle building of source zips and the removal of source zips and binary jars for the server generation.

This commit is contained in:
David Dykstal 2006-04-26 22:10:31 +00:00
parent f54318b537
commit 2134437423
2 changed files with 89 additions and 107 deletions

View file

@ -31,114 +31,99 @@
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="assemble.org.eclipse.rse.core"> <target name="assemble.org.eclipse.rse.core">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
</ant> <antcall target="assemble.source.feature"/>
<!--
<antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.core" />
</antcall>
-->
</target>
<target name="assemble.org.eclipse.rse.local">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
</ant>
<!--
<antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.local" />
</antcall>
-->
</target>
<target name="assemble.org.eclipse.rse.ftp">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
</ant>
<!--
<antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.ftp" />
</antcall>
-->
</target>
<target name="assemble.org.eclipse.rse.dstore">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
</ant>
<!--
<antcall target="serverruntime" />
<antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.dstore" />
</antcall>
-->
</target> </target>
<target name="dstore_extra_server.jar"> <target name="assemble.org.eclipse.rse.local">
<mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime" /> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
<delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" /> </target>
<mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" />
<javac debug="${dbg}" srcdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/server" destdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" includeAntRuntime="false" /> <target name="assemble.org.eclipse.rse.ftp">
<jar jarfile="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar" basedir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" /> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
<delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" /> </target>
<target name="assemble.org.eclipse.rse.dstore">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
</target>
<target name="assemble.source.feature">
<echo message="buildDirectory = ${buildDirectory}"/>
<echo message="id = ${id}"/>
<echo message="buildLabel = ${buildLabel}"/>
<echo message="buildId = ${buildId}"/>
<echo message="archivePrefix = ${archivePrefix}"/>
</target> </target>
<target name="serverruntime"> <target name="serverruntime">
<antcall target="dstore_extra_server.jar" />
<!-- property name="universalserverfilelist" value="${buildDirectory}/plugins/org.eclipse.dstore.core/dstore_core.jar,
${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/patterns.dat,
${buildDirectory}/plugins/org.eclipse.rse.services/clientserver.jar,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/dstore_miners.jar,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/auth.pl,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/ssl.properties,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/minerFile.dat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/rsecomm.properties,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/server.linux,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/server.unix,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/patterns.dat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.linux,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/win.env.bat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.win.bat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/run.win.bat" /-->
<delete dir="${packageDirectory}\rseserver" /> <property name="working" value="${packageDirectory}/rseserver"/>
<mkdir dir="${packageDirectory}\rseserver" /> <mkdir dir="${working}" />
<mkdir dir="${working}/jars" />
<copy todir="${packageDirectory}\rseserver"> <copy todir="${working}">
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="**" />
</copy>
<copy todir="${working}/jars">
<fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.core" includes="dstore_core.jar" /> <fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.core" includes="dstore_core.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime" includes="dstore_extra_server.jar" /> <fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.extra" includes="dstore_extra_server.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="dstore_miners.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="patterns.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services" includes="clientserver.jar" /> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services" includes="clientserver.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="auth.pl" /> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="dstore_miners.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="ssl.properties" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="minerFile.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="rsecomm.properties" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.linux" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.unix" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="patterns.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.linux" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="win.env.bat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.win.bat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="run.win.bat" />
</copy> </copy>
<antcall target="rseserver-os">
<param name="os" value="aix"/>
<param name="eol" value="lf"/>
</antcall>
<antcall target="rseserver-os">
<param name="os" value="unix"/>
<param name="eol" value="lf"/>
</antcall>
<antcall target="rseserver-os">
<param name="os" value="linux"/>
<param name="eol" value="lf"/>
</antcall>
<antcall target="rseserver-os">
<param name="os" value="windows"/>
<param name="eol" value="crlf"/>
</antcall>
<delete dir="${working}" />
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.linux" /> </target>
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.linux" />
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.unix" /> <target name="rseserver-os">
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.unix" /> <mkdir dir="${working}/collector" />
<copy todir="${working}/collector">
<jar jarfile="${packageDirectory}\rseserver.jar" filesonly="true"> <fileset dir="${working}/scripts/${os}" includes="*"/>
<fileset dir="${packageDirectory}\rseserver" includes="*" excludes="">
</fileset>
</jar>
<delete dir="${packageDirectory}\rseserver" />
<delete>
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="*">
</fileset>
</delete>
<copy todir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime">
<fileset dir="${packageDirectory}" includes="rseserver.jar">
</fileset>
</copy> </copy>
<chmod perm="u+rx" includes="${working}/collector/*"/>
<copy todir="${working}/collector">
<fileset dir="${working}/data" includes="*"/>
</copy>
<fixcrlf srcdir="${working}/collector" eol="${eol}" eof="asis" includes="*"/>
<copy todir="${working}/collector">
<fileset dir="${working}/jars" includes="*"/>
</copy>
<tar destfile="${packageDirectory}\rseserver-${os}.tar" basedir="${working}/collector" includes="*"/>
<zip destfile="${packageDirectory}\rseserver-${os}.zip" basedir="${working}/collector" includes="*"/>
<delete dir="${working}/collector" />
</target>
<target name="hideServerStuff">
<move todir="${buildDirectory}/plugins">
<fileset dir="${buildDirectory}/plugins" includes="**/*.jar" />
<fileset dir="${buildDirectory}/plugins" includes="**/*.zip" excludes="**/src.zip"/>
<globmapper from="*" to="*.hidden"/>
</move>
</target>
<target name="revealServerStuff">
<move todir="${buildDirectory}/plugins">
<fileset dir="${buildDirectory}/plugins" includes="**/*.hidden" />
<globmapper from="*.hidden" to="*"/>
</move>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
@ -223,16 +208,12 @@
<!-- Steps to do before running the build.xmls for the elements being built. --> <!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preProcess"> <target name="preProcess">
<antcall target="allElements">
<param name="target" value="gatherSources" />
</antcall>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after running the build.xmls for the elements being built. --> <!-- Steps to do after running the build.xmls for the elements being built. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postProcess"> <target name="postProcess">
<antcall target="serverruntime" />
<antcall target="allElements"> <antcall target="allElements">
<param name="target" value="gatherLogs" /> <param name="target" value="gatherLogs" />
</antcall> </antcall>
@ -242,12 +223,18 @@
<!-- Steps to do before running assemble. --> <!-- Steps to do before running assemble. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preAssemble"> <target name="preAssemble">
<antcall target="serverruntime" />
<antcall target="hideServerStuff" />
<antcall target="allElements">
<param name="target" value="gatherSources" />
</antcall>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after running assemble. --> <!-- Steps to do after running assemble. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postAssemble"> <target name="postAssemble">
<antcall target="revealServerStuff" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->

View file

@ -73,11 +73,10 @@
<ant antfile="build.xml" dir="${elementPath}" target="build.jars"> <ant antfile="build.xml" dir="${elementPath}" target="build.jars">
<property name="target" value="build.jars"/> <property name="target" value="build.jars"/>
</ant> </ant>
<!-- dwd
<ant antfile="build.xml" dir="${elementPath}" target="build.sources"> <ant antfile="build.xml" dir="${elementPath}" target="build.sources">
<property name="target" value="build.sources"/> <property name="os" value="${os}" />
<property name="ws" value="${ws}" />
</ant> </ant>
-->
</target> </target>
<!-- ********************** <!-- **********************
@ -106,10 +105,6 @@ set here?
<!-- Gather source for a build element --> <!-- Gather source for a build element -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="gatherSources" description="Gathering source distribution..." depends="init"> <target name="gatherSources" description="Gathering source distribution..." depends="init">
<ant antfile="build.xml" dir="${elementPath}" target="build.sources">
<property name="os" value="${os}" />
<property name="ws" value="${ws}" />
</ant>
<ant antfile="build.xml" dir="${elementPath}" target="zip.sources"> <ant antfile="build.xml" dir="${elementPath}" target="zip.sources">
<property name="os" value="${os}" /> <property name="os" value="${os}" />
<property name="ws" value="${ws}" /> <property name="ws" value="${ws}" />