Skip to content

Commit

Permalink
moved mail/jaf/junit homes into properties file
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Jun 17, 2013
1 parent 9b5f8d9 commit 64065ce
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
28 changes: 21 additions & 7 deletions ant/bc+-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,44 @@
<property name="jce.target" value="jce-${target.name}" />
<property name="jce.target.dir" value="${artifacts.dir}/${jce.target}" />
<property name="jce.target.src.dir" value="${jce.target.dir}/src" />
<property name="jce.target.docs.dir" value="${jce.target.dir}/docs" />
<property name="jce.target.docs.dir" value="${jce.target.dir}/javadoc" />
<property name="jce.target.src.zip" value="${jce.target.dir}/src.zip" />

<property name="provider.target" value="bcprov-${target.name}" />
<property name="provider.target.dir" value="${artifacts.dir}/${provider.target}" />
<property name="provider.target.src.dir" value="${provider.target.dir}/src" />
<property name="provider.target.docs.dir" value="${provider.target.dir}/docs" />
<property name="provider.target.docs.dir" value="${provider.target.dir}/javadoc" />
<property name="provider.target.src.zip" value="${provider.target.dir}/src.zip" />

<property name="mail.target" value="bcmail-${target.name}" />
<property name="mail.target.dir" value="${artifacts.dir}/${mail.target}" />
<property name="mail.target.src.dir" value="${mail.target.dir}/src" />
<property name="mail.target.docs.dir" value="${mail.target.dir}/docs" />
<property name="mail.target.docs.dir" value="${mail.target.dir}/javadoc" />
<property name="mail.target.src.zip" value="${mail.target.dir}/src.zip" />

<property name="pkix.target" value="bcpkix-${target.name}" />
<property name="pkix.target.dir" value="${artifacts.dir}/${pkix.target}" />
<property name="pkix.target.src.dir" value="${pkix.target.dir}/src" />
<property name="pkix.target.docs.dir" value="${pkix.target.dir}/docs" />
<property name="pkix.target.docs.dir" value="${pkix.target.dir}/javadoc" />
<property name="pkix.target.src.zip" value="${pkix.target.dir}/src.zip" />

<property name="pg.target" value="bcpg-${target.name}" />
<property name="pg.target.dir" value="${artifacts.dir}/${pg.target}" />
<property name="pg.target.src.dir" value="${pg.target.dir}/src" />
<property name="pg.target.docs.dir" value="${pg.target.dir}/docs" />
<property name="pg.target.docs.dir" value="${pg.target.dir}/javadoc" />
<property name="pg.target.src.zip" value="${pg.target.dir}/src.zip" />

<property name="lcrypto.target" value="lcrypto-${target.name}" />
<property name="lcrypto.target.dir" value="${artifacts.dir}/${lcrypto.target}" />
<property name="lcrypto.target.src.dir" value="${lcrypto.target.dir}/src" />
<property name="lcrypto.target.classes.dir" value="${lcrypto.target.dir}/classes" />
<property name="lcrypto.target.docs.dir" value="${lcrypto.target.dir}/docs" />
<property name="lcrypto.target.docs.dir" value="${lcrypto.target.dir}/javadoc" />

<path id="project.classpath">
<pathelement location="${mail.jar.home}" />
<pathelement location="${activation.jar.home}" />
<pathelement location="${junit.jar.home}" />
</path>

<target name="pack200-on" if="pack200.enabled">
<taskdef name="pack200" classname="com.sun.tools.apache.ant.pack200.Pack200Task"
Expand Down Expand Up @@ -97,6 +103,7 @@
destdir="${build.dir}/@{target}/classes"
debug="${release.debug}">
<classpath>
<path refid="project.classpath" />
<fileset dir="${artifacts.jars.dir}">
<include name="**/*.jar" />
</fileset>
Expand Down Expand Up @@ -132,6 +139,7 @@
destdir="${build.dir}/@{target}/classes"
debug="${release.debug}">
<classpath>
<path refid="project.classpath" />
<fileset dir="${artifacts.jars.dir}">
<include name="**/*.jar" />
</fileset>
Expand Down Expand Up @@ -194,6 +202,7 @@
<docElements/>
<arg value="${javadoc.args}" />
<classpath>
<path refid="project.classpath" />
<fileset dir="${artifacts.jars.dir}">
<include name="**/*.jar" />
</fileset>
Expand All @@ -208,7 +217,12 @@
<sequential>
<copy toDir="@{toDir}">
<fileset dir="${basedir}">
<include name="*.html" />
<include name="**/*.html" />
</fileset>
</copy>
<copy toDir="@{toDir}/docs">
<fileset dir="${basedir}/docs">
<include name="**/*.html" />
</fileset>
</copy>
</sequential>
Expand Down
8 changes: 6 additions & 2 deletions bc-build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

release.suffix: 149
release.name: 1.49
release.suffix: 150b02
release.name: 1.50b02
release.debug: true

mail.jar.home: /opt/javamail/mail.jar
activation.jar.home: /opt/jaf/activation.jar
junit.jar.home: /opt/junit/junit.jar
6 changes: 0 additions & 6 deletions build15+
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
if [ "${JDKPATH}" = "" ]
then
JDKPATH=/opt/jdk1.5.0 # JDK 1.5 location
JAVA_MAIL_HOME=/opt/javamail
JAVA_ACTIVATION_HOME=/opt/jaf
JUNIT_HOME=/opt/junit
fi

JAVA_HOME=$JDKPATH
Expand All @@ -20,9 +17,6 @@ export JAVA_HOME
PATH=$JDKPATH/bin:$PATH
export PATH

CLASSPATH=$JAVA_MAIL_HOME/mail.jar:$JAVA_ACTIVATION_HOME/activation.jar:$JUNIT_HOME/junit.jar:$CLASSPATH
export CLASSPATH

if [ "$1" = "test" ]
then
ant -f ant/jdk15+.xml test
Expand Down

0 comments on commit 64065ce

Please sign in to comment.