I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7dc7697c authored by sponge's avatar sponge
Browse files

fix mysterious file name, force routerjars

parent 91fb0a22
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
if (!ok) { if (!ok) {
/* update version.props */ /* update version.props */
echo = project.createTask("echo"); echo = project.createTask("echo");
echo.setMessage("Updating file='" + attributes.get("file") + "'\n" + props); echo.setMessage("(1)Updating file='" + attributes.get("file") + "'\n" + props);
echo.perform(); echo.perform();
fo = new FileOutputStream(cfg); fo = new FileOutputStream(cfg);
props.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!"); props.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!");
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
bprops = new Properties(); bprops = new Properties();
bprops.setProperty("build.number", "1"); bprops.setProperty("build.number", "1");
echo = project.createTask("echo"); echo = project.createTask("echo");
echo.setMessage("Updating file='" + attributes.get("buildfile") + "'\n" + bprops); echo.setMessage("(2)Updating file='" + attributes.get("buildfile") + "'\n" + bprops);
echo.perform(); echo.perform();
cfg = new File(attributes.get("buildfile")); cfg = new File(attributes.get("buildfile"));
fo = new FileOutputStream(cfg); fo = new FileOutputStream(cfg);
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
} else { } else {
/* just update version.props */ /* just update version.props */
echo = project.createTask("echo"); echo = project.createTask("echo");
echo.setMessage("Updating file='" + attributes.get("file") + "'\n" + props); echo.setMessage("(3)Updating file='" + attributes.get("file") + "'\n" + props);
echo.perform(); echo.perform();
fo = new FileOutputStream(cfg); fo = new FileOutputStream(cfg);
props.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!"); props.store(fo, "AUTO-GENERATED FILE, DO NOT EDIT!");
...@@ -275,7 +275,6 @@ ...@@ -275,7 +275,6 @@
]]> ]]>
</scriptdef> </scriptdef>
<!-- files of interest --> <!-- files of interest -->
<property name="MANIFESTfilename" value="AndroidManifest.xml" /> <property name="MANIFESTfilename" value="AndroidManifest.xml" />
...@@ -339,15 +338,13 @@ ...@@ -339,15 +338,13 @@
<!-- if the file is not available, create it with the current infos --> <!-- if the file is not available, create it with the current infos -->
<propertyfilechecks file="${allversionsfilename}" condition="${allversionsfilename.present}" <propertyfilechecks file="${allversionsfilename}" condition="${allversionsfilename.present}"
propsdata="my.version.name=${zap.full}&#10;my.version.code=${zap.vercode}&#10;last.CORE=${CORE}&#10;last.ROUTERBUILD=${ROUTERBUILD}&#10;" propsdata="my.version.name=${zap.full}&#10;my.version.code=${zap.vercode}&#10;last.CORE=${CORE}&#10;last.ROUTERBUILD=${ROUTERBUILD}&#10;"
buildfile="${buildversionfile}" buildfile="${buildversionfilename}"
mainxml="${MANIFESTfilename}" mainxml="${MANIFESTfilename}"
libxml="${MANIFESTROUTERfilename}" libxml="${MANIFESTROUTERfilename}"
/> />
<loadfile srcfile="${allversionsfilename}" property="allversionsfile" encoding="UTF-8"/> <loadfile srcfile="${allversionsfilename}" property="allversionsfile" encoding="UTF-8"/>
<echo message="${allversionsfile}" /> <echo message="${allversionsfile}" />
<property file="${buildversionfile}" /> <property file="${buildversionfile}" />
<!-- this loads my.version.code and my.version.name, and performs a copy --> <!-- this loads my.version.code and my.version.name, and performs a copy -->
<property file="${allversionsfilename}" /> <property file="${allversionsfilename}" />
...@@ -355,6 +352,17 @@ ...@@ -355,6 +352,17 @@
<property name="version.name" value="${my.version.name}" /> <property name="version.name" value="${my.version.name}" />
<echo message="version.code '${version.code}', 'version.name '${version.name}', '${my.version.name}'" /> <echo message="version.code '${version.code}', 'version.name '${version.name}', '${my.version.name}'" />
<!-- If we are missing any jars, we _MUST_ make them ahead of time so
the build does not fail! _HOWEVER_ we must only do this if we are
_BUILDING_! Apache Ant does not allow us to know what target we are
about to run, because the authors believe it is 'evil' and other
nonsense. So for now (so sorry!) we force build it ahead of time
always, no matter what target was selected, until some better way
of resolving this issue apears.
-->
<ant dir="routerjars" inheritall="false" useNativeBasedir="true" >
<target name="buildrouter" />
</ant>
<!-- <!--
================================================================================ ================================================================================
New I2P rules New I2P rules
...@@ -371,7 +379,6 @@ ...@@ -371,7 +379,6 @@
<incbuildnumber file="${buildversionfilename}" /> <incbuildnumber file="${buildversionfilename}" />
</target> </target>
<!-- overrides of those in main_rules.xml --> <!-- overrides of those in main_rules.xml -->
<target name="-pre-build" depends="copy-i2p-resources" > <target name="-pre-build" depends="copy-i2p-resources" >
...@@ -456,8 +463,12 @@ ...@@ -456,8 +463,12 @@
</target> </target>
<target name="distclean" depends="clean"> <target name="distclean" depends="clean">
<ant dir="routerjars" inheritall="false" useNativeBasedir="true" >
<target name="distclean" />
</ant>
<delete file="scripts/build.number" verbose="${verbose}" /> <delete file="scripts/build.number" verbose="${verbose}" />
<delete file="scripts/version.properties" verbose="${verbose}" /> <delete file="scripts/version.properties" verbose="${verbose}" />
<delete file="AndroidManifest.xml" verbose="${verbose}" />
</target> </target>
<!-- just to make it easier --> <!-- just to make it easier -->
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
</target> </target>
<target name="-pre-clean"> <target name="-pre-clean">
<delete dir="${jar.libs.dir}" verbose="${verbose}" />
</target> </target>
<!-- new rules --> <!-- new rules -->
...@@ -94,7 +93,9 @@ ...@@ -94,7 +93,9 @@
</target> </target>
<target name="distclean" depends="clean"> <target name="distclean" depends="clean">
<delete dir="${jar.libs.dir}" verbose="${verbose}" />
<delete dir="jni/build/" verbose="${verbose}" /> <delete dir="jni/build/" verbose="${verbose}" />
<delete file="AndroidManifest.xml" verbose="${verbose}" />
</target> </target>
</project> </project>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment