mirror of
https://github.com/umjammer/vavi-apps-appleii-bdj.git
synced 2024-11-24 20:37:57 +00:00
145 lines
4.3 KiB
XML
145 lines
4.3 KiB
XML
<?xml version="1.0" encoding="UTf-8"?>
|
|
|
|
<!-- ////////////////////////////////////////////////////////////////////// -->
|
|
<!-- Copyright (c) 2008 by umjammer, All rights reserved. -->
|
|
<!-- -->
|
|
<!-- Written by umjammer -->
|
|
<!-- -->
|
|
<!-- BD-J Apple II -->
|
|
<!-- -->
|
|
<!-- @author umjammer -->
|
|
<!-- @version 0.00 080912 umjammer initial version -->
|
|
<!-- -->
|
|
<!-- ////////////////////////////////////////////////////////////////////// -->
|
|
|
|
<project name="bdj Apple II" default="run" basedir=".">
|
|
|
|
<property environment="env"/>
|
|
<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"
|
|
deprecation="true">
|
|
<!--
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<!-- -->
|