Allow some variables to be changed by end-users during build by use of a

properties file.
This commit is contained in:
kytv
2011-08-07 00:45:14 +00:00
parent 2973b4097d
commit 255ccdcbc1
3 changed files with 23 additions and 4 deletions

View File

@@ -23,3 +23,4 @@ _jsp\.java$
/build/ /build/
/classes/ /classes/
^debian/copyright ^debian/copyright
override.properties

15
build.properties Normal file
View File

@@ -0,0 +1,15 @@
# These properties can be set to alter the build process.
#
# This file contains default values that are used by official I2P installers.
#
# End-users *should not* edit this file. If you want to change the values, make a
# copy, call it override.properties, and make the desired changes to that.
################################################################################
# Javadocs
# Note: Include the trailing slash! Don't surround the URL in quotes!
javasedocs.url=http://download.oracle.com/javase/6/docs/api/
jettydocs.url=http://docs.i2p2.de/jetty/javadoc/
jrobindocs.url=http://docs.i2p-projekt.de/jrobin/javadoc/
wrapperdocs.url=http://wrapper.tanukisoftware.com/jdoc/

View File

@@ -15,6 +15,9 @@
<!-- change this to false if you don't have gettext --> <!-- change this to false if you don't have gettext -->
<property name="require.gettext" value="true" /> <property name="require.gettext" value="true" />
<!-- Include property files so that values can be easily overridden. Currently just useful for javadoc hosters -->
<property file="override.properties"/>
<property file="build.properties"/>
<!-- You probably don't want to change anything from here down --> <!-- You probably don't want to change anything from here down -->
<target name="help" depends="all" /> <target name="help" depends="all" />
@@ -386,10 +389,10 @@
<pathelement location="installer/lib/wrapper/all/wrapper.jar" /> <pathelement location="installer/lib/wrapper/all/wrapper.jar" />
<pathelement location="core/lib/junit.jar" /> <pathelement location="core/lib/junit.jar" />
</classpath> </classpath>
<link offline="true" href="http://download.oracle.com/javase/6/docs/api/" packagelistLoc="installer/resources/package-lists/java/" /> <link offline="true" href="${javasedocs.url}" packagelistLoc="installer/resources/package-lists/java/" />
<link offline="true" href="http://docs.i2p2.de/jetty/javadoc/" packagelistLoc="installer/resources/package-lists/jetty/" /> <link offline="true" href="${jettydocs.url}" packagelistLoc="installer/resources/package-lists/jetty/" />
<link offline="true" href="http://docs.i2p-projekt.de/jrobin/javadoc/" packagelistLoc="installer/resources/package-lists/jrobin/" /> <link offline="true" href="${jrobindocs.url}" packagelistLoc="installer/resources/package-lists/jrobin/" />
<link offline="true" href="http://wrapper.tanukisoftware.com/jdoc/" packagelistLoc="installer/resources/package-lists/wrapper/" /> <link offline="true" href="${wrapperdocs.url}" packagelistLoc="installer/resources/package-lists/wrapper/" />
</javadoc> </javadoc>
<echo message="Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" /> <echo message="Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" />
</target> </target>