summaryrefslogtreecommitdiffstats
path: root/tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml')
-rw-r--r--tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml151
1 files changed, 0 insertions, 151 deletions
diff --git a/tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml b/tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml
deleted file mode 100644
index 0b657f84e6..0000000000
--- a/tags/native-sca-1.0.incubating-M3/tools/scagen/build.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-
-
-<project name="org.apache.tuscany.sca.cpp.tools" default="all" basedir=".">
-
- <target name="init">
- <property name="build.result.folder" value="${basedir}/bld" />
- <property name="temp.folder" value="${basedir}/tmp" />
- <property name="junit.jar.folder" value="${basedir}/lib" />
- <property name="tool.name" value="scagen" />
- <property name="bin.dir" value="${basedir}/../../deploy/bin" />
- </target>
-
- <!-- Add "test" to the depends list below to add auto-testing to the build -->
- <!-- a junit.jar is needed at ${junit.jar.folder}/junit.jar though -->
- <target name="all" depends="init,jars,doc,scripts,zip.all">
- </target>
-
- <target name="test" depends="init,jars,test.jar">
- <java classname="org.apache.tuscany.sca.cpp.tools.junit.TestAllCompositesTest">
- <classpath>
- <pathelement location="${build.result.folder}/test.jar" />
- <pathelement location="${junit.jar.folder}/junit.jar" />
- <pathelement location="${build.result.folder}/scagen.jar" />
- <pathelement path="${java.class.path}" />
- </classpath>
- </java>
- </target>
-
-
-
- <target name="doc">
- <javadoc packagenames="org.apache.tuscany.sca.cpp.tools.*" sourcepath="src" defaultexcludes="yes" destdir="docs/api" author="true" version="true" use="true" windowtitle="SCA for C++ Tools">
- <doctitle>
- <![CDATA[<h1>SCA for C++ Tools</h1>]]>
- </doctitle>
- <bottom>
- <![CDATA[<i>Copyright 2005 The Apache Software Foundation or its licensors, as applicable.</i>]]></bottom>
- <group title="C++ Parser" packages="org.apache.tuscany.sca.cpp.tools.common" />
- <group title="SCA Services Generator" packages="org.apache.tuscany.sca.cpp.tools.services" />
- <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api/" packagelistLoc="C:\tmp" />
-</javadoc>
-</target>
-
-<target name="jars" depends="init, scagen.jar, src.jar">
-</target>
-
-<target name="scripts" depends="init">
-<mkdir dir="${build.result.folder}" />
-</target>
-
-
-
-<target name="src.jar" depends="init">
-<delete dir="${temp.folder}/src.jar.bin" />
-<mkdir dir="${temp.folder}/src.jar.bin" />
-<!-- Copy necessary resources i.e XSL stylesheets, test input etc
- for the src jar too
- -->
-<copy todir="${temp.folder}/src.jar.bin" failonerror="true">
- <fileset dir="src/" />
-</copy>
-<mkdir dir="${build.result.folder}" />
-<jar jarfile="${build.result.folder}/src.jar" basedir="${temp.folder}/src.jar.bin" />
-<delete dir="${temp.folder}/test.jar.bin" />
-</target>
-
-<target name="test.jar" depends="init, scagen.jar" unless="test.jar" description="Create jar for unit tests: test.jar.">
-<delete dir="${temp.folder}/test.jar.bin" />
-<mkdir dir="${temp.folder}/test.jar.bin" />
-<!-- compile the source code -->
-<javac srcdir="junit" destdir="${temp.folder}/test.jar.bin" failonerror="true" includeAntRuntime="no">
- <src path="junit/" />
- <classpath>
- <pathelement path="${junit.jar.folder}/junit.jar" />
- <pathelement path="${build.result.folder}/scagen.jar" />
- </classpath>
-</javac>
-<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
-<copy todir="${temp.folder}/test.jar.bin" failonerror="true">
- <fileset dir="junit/" excludes="testoutput/**" />
-</copy>
-<mkdir dir="${build.result.folder}" />
-<jar jarfile="${build.result.folder}/test.jar" basedir="${temp.folder}/test.jar.bin" />
-<delete dir="${temp.folder}/test.jar.bin" />
-</target>
-
-<target name="scagen.jar" depends="init" unless="scagen.jar" description="Create main jar: scagen.jar">
-<delete dir="${temp.folder}/scagen.jar.bin" />
-<mkdir dir="${temp.folder}/scagen.jar.bin" />
-<!-- compile the source code -->
-<javac srcdir="src" destdir="${temp.folder}/scagen.jar.bin" failonerror="true" includeAntRuntime="no">
- <src path="src/" />
-</javac>
-<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
-<copy todir="${temp.folder}/scagen.jar.bin" failonerror="true">
- <fileset dir="src/" excludes="**/*.java" />
-</copy>
-
-<copy todir="${temp.folder}/scagen.jar.bin/META-INF" failonerror="true">
- <fileset dir="META-INF/"/>
-</copy>
-
-<mkdir dir="${build.result.folder}" />
-<jar jarfile="${build.result.folder}/scagen.jar" basedir="${temp.folder}/scagen.jar.bin">
- <manifest>
- <attribute name="Main-Class" value="org.apache.tuscany.sca.cpp.tools.services.Scagen" />
- </manifest>
-</jar>
-<delete dir="${temp.folder}/scagen.jar.bin" />
-</target>
-
-<target name="tobin" depends="jars, scripts" description="move the desired stuff to bin">
- <move file="${build.result.folder}/scagen.jar" todir="${bin.dir}" />
-</target>
-
-
-
-<target name="clean" depends="init" description="Clean of all the files created.">
-<delete file="${build.result.folder}/test.jar" />
-<delete file="${build.result.folder}/src.jar" />
-<delete file="${build.result.folder}/scagen.jar" />
-<delete file="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" />
-<delete dir="${temp.folder}" />
-</target>
-
-<target name="zip.all" depends="jars" description="Create a zip containing everything">
-<delete file="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" />
-<zip zipfile="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" excludes="bin/**,tmp/**,lib/**,junit/testoutput/**" basedir="." filesonly="true" whenempty="skip" update="false" />
-<delete dir="${temp.folder}" />
-</target>
-
-</project> \ No newline at end of file