| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<!-- =================================================================== |
| 4 |
|
| 5 |
Build file for Axis functional test Ant task |
| 6 |
|
| 7 |
Notes: |
| 8 |
This is a build file for use with the Jakarta Ant build tool. |
| 9 |
This build file builds an Ant task used to perform Axis functional tests. |
| 10 |
|
| 11 |
Prerequisites: |
| 12 |
|
| 13 |
a successful Axis build configuration |
| 14 |
|
| 15 |
Author: |
| 16 |
Rob Jellinghaus <[email protected]> |
| 17 |
|
| 18 |
Copyright: |
| 19 |
Copyright (c) 2001 Apache Software Foundation. |
| 20 |
|
| 21 |
==================================================================== --> |
| 22 |
|
| 23 |
<project default="buildAntTask" basedir="."> |
| 24 |
|
| 25 |
<path id="test-classpath"> |
| 26 |
<!-- build.dir for test classes and build.dest for classes to test --> |
| 27 |
<pathelement location="${build.dir}" /> |
| 28 |
<pathelement location="${build.dest}" /> |
| 29 |
<pathelement path="${java.class.path}" /> |
| 30 |
<pathelement location="${commons-logging.jar}"/> |
| 31 |
<pathelement location="${log4j-core.jar}"/> |
| 32 |
</path> |
| 33 |
|
| 34 |
<!-- |
| 35 |
I am not sure how else to get this optional-ant-task class onto |
| 36 |
the Ant classpath. I know that environment is system-dependent, though it |
| 37 |
should work on both Unix and Windows. |
| 38 |
Any thoughts? |
| 39 |
--> |
| 40 |
<property name="myenv" environment="myenv" /> |
| 41 |
<property name="ant.dir" value="${myenv.ANT_HOME}/lib" /> |
| 42 |
|
| 43 |
<!-- =================================================================== --> |
| 44 |
<!-- Build the Ant task for Axis functional testing. Put the resulting --> |
| 45 |
<!-- Ant task class into the Ant lib directory (where extension tasks --> |
| 46 |
<!-- ought to go). --> |
| 47 |
<!-- Hope that the user has ANT_HOME/lib on their Ant path. --> |
| 48 |
<!-- =================================================================== --> |
| 49 |
<target name="buildAntTask" if="junit.present"> |
| 50 |
<echo message="ant.dir is ${ant.dir}" /> |
| 51 |
<!-- Tests are packaged as test.*, so source dir is main dir --> |
| 52 |
<javac srcdir="${basedir}" |
| 53 |
destdir="${ant.dir}"> |
| 54 |
<include name="test/functional/ant/*.java" /> |
| 55 |
<classpath refid="test-classpath"/> |
| 56 |
</javac> |
| 57 |
</target> |
| 58 |
|
| 59 |
</project> |
| 60 |
|