mirror of
https://github.com/umjammer/vavi-apps-appleii-bdj.git
synced 2024-11-22 07:30:55 +00:00
update build environment
This commit is contained in:
parent
6de544910d
commit
8a19b3c5f0
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
bin/
|
|
||||||
00000.*
|
|
||||||
META-INF/
|
|
||||||
etc/config/
|
|
||||||
tmp/
|
tmp/
|
||||||
|
build/
|
||||||
|
local.properties
|
||||||
|
src/main/resources/APPLE2E.ROM
|
||||||
|
src/main/resources/*.dsk
|
||||||
|
54
build.xml
54
build.xml
@ -24,11 +24,7 @@
|
|||||||
<!-- class path definitions -->
|
<!-- class path definitions -->
|
||||||
<path id="project.class.path">
|
<path id="project.class.path">
|
||||||
<fileset dir="${dir.bdj}/common">
|
<fileset dir="${dir.bdj}/common">
|
||||||
<include name="*.jar" />
|
<exclude name="bdj.jar" />
|
||||||
<include name="jmf/jmf.jar" />
|
|
||||||
<exclude name="javassist.jar" />
|
|
||||||
<exclude name="metouia.jar" />
|
|
||||||
<exclude name="nanoxml-2.2.3.jar" />
|
|
||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
@ -43,7 +39,6 @@
|
|||||||
<!-- clean -->
|
<!-- clean -->
|
||||||
<target name="clean" description="clear build enviroment">
|
<target name="clean" description="clear build enviroment">
|
||||||
<delete file="${jar.name}" failonerror="false" />
|
<delete file="${jar.name}" failonerror="false" />
|
||||||
<delete dir="META-INF" failonerror="false" />
|
|
||||||
<delete dir="${dir.build}" failonerror="false" />
|
<delete dir="${dir.build}" failonerror="false" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
@ -64,7 +59,10 @@
|
|||||||
<pathelement location="${dir.bdj}/lib/basis.jar" />
|
<pathelement location="${dir.bdj}/lib/basis.jar" />
|
||||||
</bootclasspath>
|
</bootclasspath>
|
||||||
-->
|
-->
|
||||||
<classpath refid="project.class.path" />
|
<classpath>
|
||||||
|
<path refid="project.class.path" />
|
||||||
|
<pathelement location="${dir.bdj}/common/bdj.jar" />
|
||||||
|
</classpath>
|
||||||
<src path="src/main/java" />
|
<src path="src/main/java" />
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
@ -72,23 +70,14 @@
|
|||||||
<!-- jar -->
|
<!-- jar -->
|
||||||
<target name="packaging" depends="compile" description="packaging">
|
<target name="packaging" depends="compile" description="packaging">
|
||||||
|
|
||||||
<copy file="etc/bluray.MyXlet.perm" toFile="${dir.build}/${paem.file}" />
|
<copy file="etc/bluray.MyXlet.perm" toFile="${dir.build}/vavi/apps/appleii/bluray.MyXlet.perm" />
|
||||||
|
|
||||||
<copy toDir="${dir.build}">
|
|
||||||
<fileset dir="src/main/java">
|
|
||||||
<include name="**/*.properties" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy toDir="${dir.build}">
|
<copy toDir="${dir.build}">
|
||||||
<fileset dir="src/main/resources" />
|
<fileset dir="src/main/resources" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<jar jarfile="${jar.name}">
|
<jar jarfile="${jar.name}">
|
||||||
<fileset dir="${dir.build}">
|
<fileset dir="${dir.build}" />
|
||||||
<exclude name="config" />
|
|
||||||
<exclude name="config/**/*" />
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
@ -100,11 +89,12 @@
|
|||||||
<arg line="-keystore ${dir.sign}/sig.ks" />
|
<arg line="-keystore ${dir.sign}/sig.ks" />
|
||||||
<arg value="${jar.name}" />
|
<arg value="${jar.name}" />
|
||||||
</java>
|
</java>
|
||||||
|
<delete dir="META-INF" failonerror="false" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- dist -->
|
<!-- dist -->
|
||||||
<target name="dist" depends="sign" description="distribution">
|
<target name="dist" depends="sign" description="distribution">
|
||||||
<java jar="${dir.bdj}/common/hdcookbook/bdjo.jar" fork="yes">
|
<java jar="${dir.bdj}/hdcookbook/bdjo.jar" fork="yes">
|
||||||
<arg value="etc/bdjo.xml" />
|
<arg value="etc/bdjo.xml" />
|
||||||
<arg value="00000.bdjo" />
|
<arg value="00000.bdjo" />
|
||||||
</java>
|
</java>
|
||||||
@ -112,30 +102,16 @@
|
|||||||
|
|
||||||
<!-- run -->
|
<!-- run -->
|
||||||
<target name="run" depends="" description="test">
|
<target name="run" depends="" description="test">
|
||||||
<copy todir="${dir.build}">
|
<java classname="net.beiker.xletview.Main" fork="yes">
|
||||||
<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>
|
<classpath>
|
||||||
<pathelement location="${dir.build}" />
|
<pathelement location="${dir.runtime}" />
|
||||||
<path refid="project.class.path" />
|
<pathelement location="${dir.xletview}/target/xletvew-0.3.6v-SNAPSHOT-jar-with-dependencies.jar" />
|
||||||
|
<pathelement location="/Users/nsano/src/vavi/vavi-commons/target/vavi-commons-1.1.6-SNAPSHOT.jar" />
|
||||||
</classpath>
|
</classpath>
|
||||||
|
<jvmarg value="-Djava.util.logging.config.file=${dir.xletview}/src/test/resources/logging.properties"/>
|
||||||
<arg line="-xletPath ${dir.build}" />
|
<arg line="-xletPath ${dir.build}" />
|
||||||
<arg line="-xletClass vavi.apps.appleii.AppleIIApp" />
|
<arg line="-xletClass vavi.apps.appleii.AppleIIApp" />
|
||||||
|
<arg line="-xletExtraPath ${dir.xletview}/target/xletvew-0.3.6v-SNAPSHOT-jar-only-dvd.jar" />
|
||||||
</java>
|
</java>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
#Mind that paths can not contain backslash
|
|
||||||
#Make sure there are no spaces after the values
|
|
||||||
|
|
||||||
console.font=Helvetica
|
|
||||||
console.fontsize=10
|
|
||||||
console.height=200
|
|
||||||
console.show=true
|
|
||||||
console.width=500
|
|
||||||
console.x=0
|
|
||||||
console.y=0
|
|
||||||
extra.classpath=
|
|
||||||
file.applications=config/applications.xml
|
|
||||||
file.defaultbg=config/defaultbg.jpg
|
|
||||||
file.settings=config/settings.txt
|
|
||||||
font.sizeoffset=-2
|
|
||||||
path.config=config
|
|
||||||
remote.show=true
|
|
||||||
safearea.color=#ffee00
|
|
||||||
safearea.height=556
|
|
||||||
safearea.show=true
|
|
||||||
safearea.width=700
|
|
||||||
safearea.x=10
|
|
||||||
safearea.y=10
|
|
||||||
tv.center=true
|
|
||||||
tv.screenheight=576
|
|
||||||
tv.screenwidth=720
|
|
||||||
tv.x=0
|
|
||||||
tv.y=0
|
|
4
local.properties.sample
Normal file
4
local.properties.sample
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
dir.bdj=yourdir/bdj-toolchain
|
||||||
|
dir.sign=${dir.bdj}/common/sig
|
||||||
|
dir.xletview=yourdir/xletview
|
||||||
|
dir.runtime=${dir.xletview}/src/main/runtime
|
@ -335,6 +335,7 @@ try {
|
|||||||
});
|
});
|
||||||
} catch (Throwable t) { // for xletview bug
|
} catch (Throwable t) { // for xletview bug
|
||||||
t.printStackTrace(System.err);
|
t.printStackTrace(System.err);
|
||||||
|
System.err.println("this is running on xletview!");
|
||||||
files = new File[] {
|
files = new File[] {
|
||||||
new File(file, "Lode Runner.dsk"),
|
new File(file, "Lode Runner.dsk"),
|
||||||
new File(file, "Mystery House.dsk"),
|
new File(file, "Mystery House.dsk"),
|
||||||
@ -1192,8 +1193,8 @@ try {
|
|||||||
private Properties props = new Properties();
|
private Properties props = new Properties();
|
||||||
|
|
||||||
MyDao() throws IOException {
|
MyDao() throws IOException {
|
||||||
root = System.getProperty("bluray.vfs.root", "../tmp");
|
root = System.getProperty("bluray.vfs.root", "");
|
||||||
//System.err.println("root: " + root);
|
System.err.println("root: " + root);
|
||||||
props.load(new FileInputStream(new File(root, "appleii.properties")));
|
props.load(new FileInputStream(new File(root, "appleii.properties")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1236,6 +1237,7 @@ System.err.println("Illegal EOF: " + l + "/" + length);
|
|||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
//e.printStackTrace(System.err);
|
//e.printStackTrace(System.err);
|
||||||
|
System.err.println("resource: " + resource);
|
||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
src/main/resources/appleii.properties
Normal file
11
src/main/resources/appleii.properties
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
cpuRom=APPLE2E.ROM
|
||||||
|
displayColorMode=1
|
||||||
|
displayScale=2
|
||||||
|
#cpuDebugEnabled=true
|
||||||
|
#displayStatMode=true
|
||||||
|
cpuSpeed=2000
|
||||||
|
displayRefreshRate=10
|
||||||
|
#cpuStepMode=true
|
||||||
|
#diskDrive1=Mystery House.dsk
|
||||||
|
#diskDrive1=Tetris II.dsk
|
||||||
|
diskDrive1=/LodeRunner.dsk
|
Loading…
Reference in New Issue
Block a user