vavi-apps-appleii-bdj/build.xml

145 lines
4.3 KiB
XML
Raw Normal View History

2017-11-21 00:36:54 +00:00
<?xml version="1.0" encoding="UTf-8"?>
2011-08-23 08:39:34 +00:00
<!-- ////////////////////////////////////////////////////////////////////// -->
<!-- Copyright (c) 2008 by umjammer, All rights reserved. -->
<!-- -->
<!-- Written by umjammer -->
<!-- -->
<!-- BD-J Apple II -->
<!-- -->
2017-11-21 00:36:54 +00:00
<!-- @author umjammer -->
<!-- @version 0.00 080912 umjammer initial version -->
2011-08-23 08:39:34 +00:00
<!-- -->
<!-- ////////////////////////////////////////////////////////////////////// -->
<project name="bdj Apple II" default="run" basedir=".">
2017-11-21 00:36:54 +00:00
<property environment="env"/>
2011-08-23 08:39:34 +00:00
<property file="local.properties" />
<property name="dir.build" value="build"/>
<property name="app.name" value="00000"/>
<property name="jar.name" value="${app.name}.jar"/>
<!-- class path definitions -->
<path id="project.class.path">
<fileset dir="${dir.bdj}/common">
<include name="*.jar" />
<include name="jmf/jmf.jar" />
<exclude name="javassist.jar" />
<exclude name="metouia.jar" />
<exclude name="nanoxml-2.2.3.jar" />
</fileset>
</path>
<path id="sign.class.path">
<fileset dir="${dir.sign}">
<include name="*.jar" />
</fileset>
</path>
<!-- target definitions -->
<!-- clean -->
<target name="clean" description="clear build enviroment">
<delete file="${jar.name}" failonerror="false" />
<delete dir="META-INF" failonerror="false" />
<delete dir="${dir.build}" failonerror="false" />
</target>
<!-- prepare -->
<target name="prepare" description="prepare build enviroment">
<mkdir dir="${dir.build}" />
</target>
<!-- javac -->
<target name="compile" depends="prepare" description="compile">
<javac debug="on"
destdir="${dir.build}"
source="1.3"
target="1.3"
2017-11-21 00:36:54 +00:00
deprecation="true">
2011-08-23 08:39:34 +00:00
<!--
<bootclasspath>
<pathelement location="${dir.bdj}/lib/basis.jar" />
</bootclasspath>
-->
<classpath refid="project.class.path" />
<src path="src/main/java" />
</javac>
</target>
<!-- jar -->
<target name="packaging" depends="compile" description="packaging">
<copy file="etc/bluray.MyXlet.perm" toFile="${dir.build}/${paem.file}" />
<copy toDir="${dir.build}">
<fileset dir="src/main/java">
<include name="**/*.properties" />
</fileset>
</copy>
<copy toDir="${dir.build}">
<fileset dir="src/main/resources" />
</copy>
<jar jarfile="${jar.name}">
<fileset dir="${dir.build}">
<exclude name="config" />
<exclude name="config/**/*" />
</fileset>
</jar>
</target>
<!-- sign -->
<target name="sign" depends="packaging" description="sign">
<java classname="net.java.bd.tools.security.BDSigner" fork="yes">
<classpath refid="sign.class.path" />
<arg line="-keystore ${dir.sign}/sig.ks" />
<arg value="${jar.name}" />
</java>
</target>
<!-- dist -->
<target name="dist" depends="sign" description="distribution">
<java jar="${dir.bdj}/common/hdcookbook/bdjo.jar" fork="yes">
<arg value="etc/bdjo.xml" />
<arg value="00000.bdjo" />
</java>
</target>
<!-- run -->
<target name="run" depends="" description="test">
<copy todir="${dir.build}">
<fileset dir="etc" >
<include name="config/**/*" />
</fileset>
</copy>
<copy toDir="${dir.bdj}/common">
<fileset dir="src/main/resources" />
<fileset dir="${dir.build}">
<include name="**/*.properties" />
</fileset>
</copy>
2017-11-21 00:36:54 +00:00
2011-08-23 08:39:34 +00:00
<java jar="${dir.bdj}/common/xletview.jar" fork="yes">
<!--
<jvmarg value="-Xprof"/>
-->
<jvmarg value="-Djava.ext.dirs=${dir.bdj}/common"/>
<classpath>
<pathelement location="${dir.build}" />
<path refid="project.class.path" />
</classpath>
<arg line="-xletPath ${dir.build}" />
<arg line="-xletClass vavi.apps.appleii.AppleIIApp" />
</java>
</target>
</project>
<!-- -->