Refactor motor serialization/loading code
This commit is contained in:
parent
cffb77530e
commit
ff22040df0
@ -108,29 +108,22 @@
|
|||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="serialize-presets" depends="core-jar" description="Preprocess the orc preset files into serialized form">
|
<target name="serialize-presets" depends="build" description="Preprocess the orc preset files into serialized form">
|
||||||
<java classname="net.sf.openrocket.startup.SerializePresets"
|
<java classname="net.sf.openrocket.startup.SerializePresets"
|
||||||
fork="true"
|
fork="true"
|
||||||
classpathref="run-classpath"
|
classpathref="run-classpath"
|
||||||
failonerror="true">
|
failonerror="true">
|
||||||
</java>
|
</java>
|
||||||
</target>
|
</target>
|
||||||
<target name="serialize-motors" depends="core-jar" description="Preprocess the motor files into serialized form">
|
<target name="serialize-motors" depends="build" description="Preprocess the motor files into serialized form">
|
||||||
<java classname="net.sf.openrocket.startup.SerializeMotors"
|
<java classname="net.sf.openrocket.startup.SerializeMotors"
|
||||||
fork="true"
|
fork="true"
|
||||||
classpathref="run-classpath"
|
classpathref="run-classpath"
|
||||||
failonerror="true">
|
failonerror="true">
|
||||||
|
<arg value="resources-src/datafiles/thrustcurves/"/>
|
||||||
|
<arg value="resources/datafiles/thrustcurves/thrustcurves.ser"/>
|
||||||
</java>
|
</java>
|
||||||
</target>
|
</target>
|
||||||
<!-- Core OpenRocket JAR -->
|
|
||||||
<target name="core-jar" depends="build" description="Create the OpenRocket code-only jar file">
|
|
||||||
<jar destfile="${build.dir}/${ant.project.name}-Core.jar" basedir="${dist.dir}">
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Main-Class" value="${main-class}"/>
|
|
||||||
<attribute name="SplashScreen-Image" value="pix/splashscreen.png"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- CONVERT vendor csv to ORC files -->
|
<!-- CONVERT vendor csv to ORC files -->
|
||||||
<macrodef name="build-orc-file">
|
<macrodef name="build-orc-file">
|
||||||
@ -177,7 +170,7 @@
|
|||||||
<fileset dir="." includes="*" excludes="*.log">
|
<fileset dir="." includes="*" excludes="*.log">
|
||||||
<type type="file"/>
|
<type type="file"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
<fileset dir="." includes="resources/ lib/ lib-test/ src/ test/"/>
|
<fileset dir="." includes="resources/ lib/ lib-test/ src/ test/ resources-src/datafiles/"/>
|
||||||
</copy>
|
</copy>
|
||||||
<zip destfile="${dist.src}" basedir="${build.dir}" includes="${pkgname}/"/>
|
<zip destfile="${dist.src}" basedir="${build.dir}" includes="${pkgname}/"/>
|
||||||
<delete dir="${build.dir}/${pkgname}"/>
|
<delete dir="${build.dir}/${pkgname}"/>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user