summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/testing/itest/spi/build.xml165
1 files changed, 94 insertions, 71 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/spi/build.xml b/sca-java-2.x/trunk/testing/itest/spi/build.xml
index c9d5d44c84..1f169966d0 100644
--- a/sca-java-2.x/trunk/testing/itest/spi/build.xml
+++ b/sca-java-2.x/trunk/testing/itest/spi/build.xml
@@ -17,77 +17,76 @@
* under the License.
-->
<project name="itest-spi" default="run">
+
+ <!-- create a fileset containing the file name of each SPI class or interface -->
+ <fileset id="file.names"
+ dir="${basedir}/../../../modules">
+ <patternset id="assembly">
+ <include name="assembly/src/main/java/org/apache/tuscany/sca/assembly/*"/>
+ <!--include name="assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/*"/-->
+ <include name="assembly/src/main/java/org/apache/tuscany/sca/definitions/*"/>
+ <include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef/*"/>
+ <!--include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/*"/-->
+ <!--include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef.util/*"/-->
+ <include name="assembly/src/main/java/org/apache/tuscany/sca/policy/*"/>
+ </patternset>
+ <patternset id="contribution">
+ <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/*"/>
+ <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/*"/>
+ <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/*"/>
+ </patternset>
+ <patternset id="core-spi">
+ <include name="core-spi/src/main/java/org/apache/tuscany/sca/context/*"/>
+ <include name="core-spi/src/main/java/org/apache/tuscany/sca/invocation/*"/>
+ <include name="core-spi/src/main/java/org/apache/tuscany/sca/provider/*"/>
+ <include name="core-spi/src/main/java/org/apache/tuscany/sca/runtime/*"/>
+ <include name="core-spi/src/main/java/org/apache/tuscany/sca/work/*"/>
+ </patternset>
+ <patternset id="core">
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/assembly/*"/>
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/*"/>
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/context/*"/>
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/factory/*"/>
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/invocation/*"/>
+ <include name="core/src/main/java/org/apache/tuscany/sca/core/scope/*"/>
+ </patternset>
+ <patternset id="databinding">
+ <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/*"/>
+ <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/*"/>
+ <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/*"/>
+ <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/*"/>
+ </patternset>
+ <patternset id="deployment">
+ <include name="deployment/src/main/java/org/apache/tuscany/sca/deployment/*"/>
+ </patternset>
+ <patternset id="extensibility">
+ <include name="extensibility/src/main/java/org/apache/tuscany/sca/core/*"/>
+ <include name="extensibility/src/main/java/org/apache/tuscany/sca/extensibility/*"/>
+ </patternset>
+ <patternset id="interface-java">
+ <include name="interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/*"/>
+ </patternset>
+ <patternset id="interface-wsdl">
+ <include name="interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/*"/>
+ </patternset>
+ <patternset id="monitor">
+ <include name="monitor/src/main/java/org/apache/tuscany/sca/monitor/*"/>
+ </patternset>
+ <patternset id="node-api">
+ <include name="node-api/src/main/java/org/apache/tuscany/sca/node/*"/>
+ <include name="node-api/src/main/java/org/apache/tuscany/sca/node/configuration/*"/>
+ </patternset>
+ <patternset id="sca-api">
+ <include name="sca-api/src/main/java/org/oasisopen/sca/*"/>
+ <include name="sca-api/src/main/java/org/oasisopen/sca/annotation/*"/>
+ </patternset>
+ <patternset id="xsd">
+ <include name="xsd/src/main/java/org/apache/tuscany/sca/xsd/*"/>
+ <include name="xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/*"/>
+ </patternset>
+ </fileset>
- <target name="run">
-
- <!-- create a fileset containing the file name of each SPI class or interface -->
- <fileset id="file.names"
- dir="${basedir}/../../../modules">
- <patternset id="assembly">
- <include name="assembly/src/main/java/org/apache/tuscany/sca/assembly/*"/>
- <!--include name="assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/*"/-->
- <include name="assembly/src/main/java/org/apache/tuscany/sca/definitions/*"/>
- <include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef/*"/>
- <!--include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/*"/-->
- <!--include name="assembly/src/main/java/org/apache/tuscany/sca/interfacedef.util/*"/-->
- <include name="assembly/src/main/java/org/apache/tuscany/sca/policy/*"/>
- </patternset>
- <patternset id="contribution">
- <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/*"/>
- <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/*"/>
- <include name="contribution/src/main/java/org/apache/tuscany/sca/contribution/resolver/*"/>
- </patternset>
- <patternset id="core-spi">
- <include name="core-spi/src/main/java/org/apache/tuscany/sca/context/*"/>
- <include name="core-spi/src/main/java/org/apache/tuscany/sca/invocation/*"/>
- <include name="core-spi/src/main/java/org/apache/tuscany/sca/provider/*"/>
- <include name="core-spi/src/main/java/org/apache/tuscany/sca/runtime/*"/>
- <include name="core-spi/src/main/java/org/apache/tuscany/sca/work/*"/>
- </patternset>
- <patternset id="core">
- <include name="core/src/main/java/org/apache/tuscany/sca/core/assembly/*"/>
- <include name="core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/*"/>
- <include name="core/src/main/java/org/apache/tuscany/sca/core/context/*"/>
- <include name="core/src/main/java/org/apache/tuscany/sca/core/factory/*"/>
- <include name="core/src/main/java/org/apache/tuscany/sca/core/invocation/*"/>
- <include name="core/src/main/java/org/apache/tuscany/sca/core/scope/*"/>
- </patternset>
- <patternset id="databinding">
- <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/*"/>
- <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/annotation/*"/>
- <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/*"/>
- <include name="databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/*"/>
- </patternset>
- <patternset id="deployment">
- <include name="deployment/src/main/java/org/apache/tuscany/sca/deployment/*"/>
- </patternset>
- <patternset id="extensibility">
- <include name="extensibility/src/main/java/org/apache/tuscany/sca/core/*"/>
- <include name="extensibility/src/main/java/org/apache/tuscany/sca/extensibility/*"/>
- </patternset>
- <patternset id="interface-java">
- <include name="interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/*"/>
- </patternset>
- <patternset id="interface-wsdl">
- <include name="interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/*"/>
- </patternset>
- <patternset id="monitor">
- <include name="monitor/src/main/java/org/apache/tuscany/sca/monitor/*"/>
- </patternset>
- <patternset id="node-api">
- <include name="node-api/src/main/java/org/apache/tuscany/sca/node/*"/>
- <include name="node-api/src/main/java/org/apache/tuscany/sca/node/configuration/*"/>
- </patternset>
- <patternset id="sca-api">
- <include name="sca-api/src/main/java/org/oasisopen/sca/*"/>
- <include name="sca-api/src/main/java/org/oasisopen/sca/annotation/*"/>
- </patternset>
- <patternset id="xsd">
- <include name="xsd/src/main/java/org/apache/tuscany/sca/xsd/*"/>
- <include name="xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/*"/>
- </patternset>
- </fileset>
-
+ <target name="run-javap">
<!-- convert the filenames into class names -->
<pathconvert pathsep=" "
property="class.names"
@@ -105,7 +104,31 @@
<arg value="${runtime_classpath}"/>
<arg line="${class.names}"/>
</exec>
-
</target>
+
+ <target name="run-javadoc">
+ <!-- convert the filesnames into a LF seaprated list and exclude anything but.java -->
+ <pathconvert pathsep="${line.separator}"
+ property="file.names.separate.lines"
+ refid="file.names">
+ <globmapper from="*.java" to="*.java"/>
+ </pathconvert>
+
+ <!-- write the list out to a file so that the javadoc command line doesn't blow up -->
+ <echo file="target/tuscany-spi-files.txt">${file.names.separate.lines}</echo>
+
+ <!-- use exec rather than the javadoc task so that we can read from a file -->
+ <exec executable="javadoc"
+ output="target/javadoc-generation-report.txt">
+ <arg value="-d"/>
+ <arg value="target/javadoc"/>
+ <arg value="-use"/>
+ <arg value="-windowtitle"/>
+ <arg value="'Tuscany SPI'"/>
+ <arg value="@target/tuscany-spi-files.txt"/>
+ </exec>
+ </target>
+
+ <target name="run" depends="run-javap, run-javadoc"/>
</project>