diff options
Diffstat (limited to '')
| -rw-r--r-- | build-reader.xml (renamed from build.xml) | 69 |
1 files changed, 14 insertions, 55 deletions
diff --git a/build.xml b/build-reader.xml index 3d778f3..11d6145 100644 --- a/build.xml +++ b/build-reader.xml @@ -7,9 +7,10 @@ <!-- the Compile on Save feature is turned off for the project. --> <!-- You can turn off the Compile on Save (or Deploy on Save) setting --> <!-- in the project's Project Properties dialog box.--> -<project name="ECTester" default="default" basedir="."> - <description>Builds, tests, and runs the project ECTester.</description> - <import file="nbproject/build-impl.xml"/> +<project name="ECTesterReader" default="default" basedir="."> + <description>Builds, tests, and runs the project ECTesterReader.</description> + <import file="nbproject/reader/build-impl.xml"/> + <import file="nbproject/dist-build.xml"/> <!-- There exist several targets which are by default empty and which can be @@ -70,61 +71,19 @@ nbproject/build-impl.xml file. --> - <!-- - <path id="classpath"> - <fileset dir="lib" includes="**/*.jar"/> - </path> - - <target name="clean"> - <delete file="dist/ECTester.jar"/> - </target> - <target name="build"> - <javac srcdir="src" destdir="dist/production/ECTester" classpathref="classpath" excludes="**/SimpleAPDU.java"/> - </target> - <target name="jar" depends="build"> - <jar destfile="dist/ECTester.jar"> - <fileset dir="dist/production/ECTester"/> - <fileset dir="dist/data"/> - <manifest> - <attribute name="Main-Class" value="ECTester"/> - <attribute name="Class-Path" value="lib/jcardsim-2.2.2-all.jar lib/commons-cli-1.3.1.jar"/> - </manifest> - </jar> + <target name="-pre-jar"> + <copy file="LICENSE" todir="${build.classes.dir}"/> </target> - --> + + <!-- <target name="-post-jar"> - <copy file="src/cz/crcs/ectester/scripts/ectester.sh" todir="${dist.dir}"/> - <copy file="src/cz/crcs/ectester/scripts/ectester.bat" todir="${dist.dir}"/> + <copy file="src/cz/crcs/ectester/scripts/ectester-reader.sh" todir="${dist.dir}"/> + <copy file="src/cz/crcs/ectester/scripts/ectester-reader.bat" todir="${dist.dir}"/> </target> - <target name="package" depends="jar"> - <property name="store.jar.name" value="ECTester-dist"/> - <property name="store.dir" value="dist"/> - <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/> - - <echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/> - - <tempfile property="temp.file" destDir="${java.io.tmpdir}" suffix=".jar"/> - <tempfile property="temp.previous_jar" destdir="${java.io.tmpdir}" suffix=".jar"/> - - <copy file="${store.jar}" tofile="${temp.previous_jar}" failonerror="false"/> - <echo message="Backed up ${store.jar} into ${temp.previous_jar}"/> - - <delete file="${store.jar}" failonerror="false"/> - <jar destfile="${temp.file}" filesetmanifest="skip"> - <zipgroupfileset dir="dist" includes="*.jar"/> - <zipgroupfileset dir="dist/lib" includes="*.jar"/> - - <manifest> - <attribute name="Main-Class" value="${main.class}"/> - </manifest> - </jar> - - <zip destfile="${store.jar}"> - <zipfileset src="${temp.file}" - excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/> - </zip> + --> - <delete file="${temp.file}"/> - <delete file="${temp.previous_jar}"/> + <target name="package" depends="jar"> + <property name="store.jar.name" value="ECTesterReader-dist"/> + <antcall target="dist-build.package"/> </target> </project> |
