[Japi-cvs] SF.net SVN: japi:[900] common/trunk/commonBuild.xml
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-15 18:34:22
|
Revision: 900
http://japi.svn.sourceforge.net/japi/?rev=900&view=rev
Author: christianhujer
Date: 2009-02-15 18:34:16 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
Improve support for applications in common build.
Modified Paths:
--------------
common/trunk/commonBuild.xml
Modified: common/trunk/commonBuild.xml
===================================================================
--- common/trunk/commonBuild.xml 2009-02-15 15:41:47 UTC (rev 899)
+++ common/trunk/commonBuild.xml 2009-02-15 18:34:16 UTC (rev 900)
@@ -162,11 +162,70 @@
todir="classes/production/${module.shortname}"
>
<fileset dir="src/prj" includes="net/**/*.properties" />
+ <fileset dir="src/prj" includes="net/**/*.xml" />
<fileset dir="src/prj" includes="META-INF/services/**" />
</copy>
+ <copy
+ todir="classes/production/${module.shortname}"
+ >
+ <fileset dir="lib" includes="LICENSE-*" />
+ <fileset dir="." includes="COPYING" />
+ </copy>
</target>
<target
+ name = "build"
+ description = "Creates and packs the main archive."
+ depends = "buildApp, buildLib"
+/>
+
+<target
+ name = "buildApp"
+ depends = "compile"
+ if = "module.main.class"
+>
+ <mkdir dir="dist" />
+ <jar destfile="${distPath}.jar">
+ <zipfileset dir="classes/production/${module.shortname}" />
+ <zipgroupfileset dir="lib" includes="*.jar" excludes="LICENSE-*.jar" />
+ <manifest>
+ <attribute name="Main-Class" value="${module.main.class}" />
+ <attribute name="Implementation-Title" value="${module.name}" />
+ <attribute name="Implementation-Vendor" value="Christian Hujer + the JAPI Developers" />
+ <attribute name="Implementation-Version" value="${module.version}" />
+ <attribute name="Implementation-URL" value="http://sourceforge.net/projects/japi/" />
+ <section name="${module.package.path}">
+ <attribute name="Package-Title" value="${module.package}" />
+ <attribute name="Package-Version" value="${module.version}" />
+ <attribute name="Package-Vendor" value="Christian Hujer + the JAPI Developers" />
+ </section>
+ </manifest>
+ </jar>
+</target>
+
+<target
+ name = "buildLib"
+ depends = "compile"
+ unless = "module.main.class"
+>
+ <mkdir dir="dist" />
+ <jar destfile="${distPath}.jar">
+ <zipfileset dir="classes/production/${module.shortname}" />
+ <manifest>
+ <attribute name="Implementation-Title" value="${module.name}" />
+ <attribute name="Implementation-Vendor" value="Christian Hujer + the JAPI Developers" />
+ <attribute name="Implementation-Version" value="${module.version}" />
+ <attribute name="Implementation-URL" value="http://sourceforge.net/projects/japi/" />
+ <section name="${module.package.path}">
+ <attribute name="Package-Title" value="${module.package}" />
+ <attribute name="Package-Version" value="${module.version}" />
+ <attribute name="Package-Vendor" value="Christian Hujer + the JAPI Developers" />
+ </section>
+ </manifest>
+ </jar>
+</target>
+
+<target
name = "dist"
description = "Creates and packs distribution archives."
depends = "clean, compile, test, doc"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|