blob: b84f2e29c9e1c27c166f3049664efb2bc76be2b9 [file] [log] [blame]
<project name="JiniRelease" default="createjini" basedir=".">
<property name="release" value="releasetemp/" />
<property name="jiniinstall" value="net.jini/jini2_1" />
<!-- <property name="jini" value="${jiniinstall}/lib/" /> -->
<property name="jiniconfig" value="net.jini/jini_config" />
<!-- <property name="oracle" value="oracle/lib/"/> -->
<property name="oseecore" value="org.eclipse.osee.framework.jdk.core/bin/" />
<property name="oseejini" value="org.eclipse.osee.framework.jini/bin/" />
<property name="targetzip" value="../oseejinilookup.zip" />
<target name="clean">
<delete file="JINIMANIFEST.MF" />
<delete dir="${release}" />
</target>
<target name="createDir" depends="clean">
<mkdir dir="${release}" />
</target>
<target name="createjini" depends="createDir">
<manifest file="JINIMANIFEST.MF">
<attribute name="Main-Class" value="org/eclipse/osee/framework/jini/utility/StartJini" />
<attribute name="Class-Path" value="jini2_1/lib/jini-core.jar jini2_1/lib/jini-ext.jar jini2_1/lib/tools.jar oseecore.jar" />
<section name="common">
<attribute name="Specification-Title" value="Example" />
<attribute name="Specification-Version" value="${version}" />
<attribute name="Specification-Vendor" value="Example Organization" />
<attribute name="Implementation-Title" value="common" />
<attribute name="Implementation-Version" value="${version} ${TODAY}" />
<attribute name="Implementation-Vendor" value="Example Corp." />
</section>
</manifest>
<!-- <jar jarfile="${release}/oseecore.jar" basedir="../../${oseecore}" /> -->
<jar destfile="${release}/oseecore.jar">
<fileset dir="../../org.eclipse.osee.framework.jdk.core/bin/" />
<fileset dir="../../org.eclipse.osee.framework.plugin.core/bin/"/>
<fileset dir="../../org.eclipse.osee.framework.ui.plugin/bin/"/>
</jar>
<jar jarfile="${release}/oseejini.jar" basedir="../../${oseejini}" manifest="JINIMANIFEST.MF" />
<copy file="all.policy" toDir="${release}" />
<copy toDir="${release}/jini_config">
<fileset dir="../../${jiniconfig}" />
</copy>
<copy toDir="${release}/jini2_1/lib/">
<fileset dir="../../${jiniinstall}/lib/" includes="*.jar" />
</copy>
<copy toDir="${release}/jini2_1/lib-ext/">
<fileset dir="../../${jiniinstall}/lib-ext/" includes="*.jar" />
</copy>
<copy toDir="${release}/jini2_1/lib-dl/">
<fileset dir="../../${jiniinstall}/lib-dl/" includes="*.jar" />
</copy>
<copy toDir="${release}/META-INF">
<fileset dir="../META-INF" includes="*.MF" />
</copy>
<zip destfile="${targetzip}">
<fileset dir="${release}" />
</zip>
<delete dir="${release}" />
<delete file="JINIMANIFEST.MF" />
</target>
</project>