diff options
author | Rafael H. Schloming <rhs@apache.org> | 2008-02-01 01:03:46 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2008-02-01 01:03:46 +0000 |
commit | a03af401ba693ade452dae7d0e4042d41636d12c (patch) | |
tree | 5e2bd949706e4417a2b956349ef49f8e652700ab /java | |
parent | 7eec6b263a74ea0b18035b7cc099376fca03641a (diff) | |
download | qpid-python-a03af401ba693ade452dae7d0e4042d41636d12c.tar.gz |
ant build system
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@617320 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
47 files changed, 801 insertions, 0 deletions
diff --git a/java/broker/build.xml b/java/broker/build.xml new file mode 100644 index 0000000000..bf402af7f7 --- /dev/null +++ b/java/broker/build.xml @@ -0,0 +1,38 @@ +<!-- + - + - 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="AMQ Broker" default="build"> + + <property name="module.depends" value="common"/> + <property name="module.main" value="org.apache.qpid.server.Main"/> + <property name="module.vm.version" value="1.5"/> + + <import file="../module.xml"/> + + <property name="output.dir" value="${module.precompiled}/org/apache/qpid/server/filter/jms/selector"/> + + <target name="precompile"> + <mkdir dir="${output.dir}"/> + <javacc target="src/main/grammar/SelectorParser.jj" + outputdirectory="${output.dir}" + javacchome="${project.root}/lib"/> + </target> + +</project> diff --git a/java/build.deps b/java/build.deps new file mode 100644 index 0000000000..eff4f8c4ad --- /dev/null +++ b/java/build.deps @@ -0,0 +1,66 @@ +commons-cli=lib/commons-cli-1.0.jar +commons-codec=lib/commons-codec-1.3.jar +commons-collections=lib/commons-collections-3.2.jar +commons-configuration=lib/commons-configuration-1.2.jar +commons-lang=lib/commons-lang-2.2.jar +commons-logging=lib/commons-logging-1.0.4.jar + +geronimo-jms=lib/geronimo-jms_1.1_spec-1.0.jar + +junit-toolkit=lib/junit-toolkit-0.6-SNAPSHOT.jar + +log4j=lib/log4j-1.2.12.jar + +mina-core=lib/mina-core-1.1.5.jar +mina-filter-ssl=lib/mina-filter-ssl-1.1.5.jar + +slf4j-api=lib/slf4j-api-1.4.0.jar +slf4j-log4j=lib/slf4j-log4j12-1.4.0.jar + +xalan=lib/xalan-2.7.0.jar + +common.libs=${slf4j-api} ${mina-core} ${mina-filter-ssl} ${commons-codec} \ + ${commons-lang} ${commons-collections} ${commons-configuration} +client.libs=${common.libs} ${geronimo-jms} +broker.libs=${common.libs} ${commons-cli} ${commons-logging} ${log4j} \ + ${slf4j-log4j} ${xalan} +systests.libs=${client.libs} ${junit-toolkit} +perftests.libs=${systests.libs} +integrationtests.libs=${systests.libs} + +ibm-icu=lib/com.ibm.icu-3.4.4.jar +ecl-core-jface=lib/org.eclipse.jface-3.2.0.jar +ecl-core-commands=lib/org.eclipse.core.commands-3.2.0.jar +ecl-core-contenttype=lib/org.eclipse.core.contenttype-3.2.0.jar +ecl-core-expressions=lib/org.eclipse.core.expressions-3.2.0.jar +ecl-core-jobs=lib/org.eclipse.core.jobs-3.2.0.jar +ecl-core-runtime=lib/org.eclipse.core.runtime-3.2.0.jar +ecl-core-runtime-compat-auth=lib/org.eclipse.core.runtime.compatibility.auth-3.2.0.jar +ecl-core-runtime-compat-registry=lib/org.eclipse.core.runtime.compatibility.registry-3.2.0.jar +ecl-equinox-common=lib/org.eclipse.equinox.common-3.2.0.jar +ecl-equinox-prefs=lib/org.eclipse.equinox.preferences-3.2.0.jar +ecl-equinox-registry=lib/org.eclipse.equinox.registry-3.2.0.jar +ecl-help=lib/org.eclipse.help-3.2.0.jar +ecl-osgi=lib/org.eclipse.osgi-3.2.0.jar +ecl-swt=lib/org.eclipse.swt-3.2.0.jar +ecl-swt-win32=lib/org.eclipse.swt.win32.win32.x86-3.2.0.jar +ecl-ui=lib/org.eclipse.ui-3.2.0.jar +ecl-ui-forms=lib/org.eclipse.ui.forms-3.2.0.jar +ecl-ui-workbench=lib/org.eclipse.ui.workbench-3.2.1.jar + +management-eclipse-plugin.libs=${commons-codec} ${ibm-icu} ${ecl-core-jface} \ + ${ecl-core-commands} ${ecl-core-contenttype} ${ecl-core-expressions} \ + ${ecl-core-jobs} ${ecl-core-runtime} ${ecl-core-runtime-compat-auth} \ + ${ecl-core-runtime-compat-registry} ${ecl-equinox-common} \ + ${ecl-equinox-prefs} ${ecl-equinox-registry} ${ecl-help} ${ecl-osgi} \ + ${ecl-swt} ${ecl-swt-win32} ${ecl-ui} ${ecl-ui-forms} ${ecl-ui-workbench} + +test.libs=${log4j} ${slf4j-log4j} ${junit-toolkit} + +common.test.libs=${test.libs} +broker.test.libs=${test.libs} +client.test.libs=${broker.libs} ${test.libs} +systests.test.libs=${broker.libs} ${test.libs} +perftests.test.libs=${systests.test.libs} +integrationtests.test.libs=${systests.test.libs} +management-eclipse-plugin.test.libs=${systests.test.libs} diff --git a/java/build.xml b/java/build.xml new file mode 100644 index 0000000000..33c09f09a8 --- /dev/null +++ b/java/build.xml @@ -0,0 +1,138 @@ +<!-- + - + - 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="AMQ Java" default="build"> + + <import file="common.xml"/> + + <property name="modules.core" value="common client broker"/> + <property name="modules.tests" value="systests perftests integrationtests"/> + <property name="modules.management" value="management/eclipse-plugin"/> + + <property name="modules" value="${modules.core} ${modules.tests} ${modules.management}"/> + + <property name="qpid.jar" location="${build.lib}/qpid-incubating.jar"/> + + <map property="release.excludes" value="${modules}"> + <regexpmapper from="(.*)" to="\1/**"/> + </map> + + <property name="release.zip" location="${release}/${project.namever}.zip"/> + <property name="release.tar" location="${release}/${project.namever}.tar"/> + <property name="release.tgz" location="${release}/${project.namever}.tar.gz"/> + <property name="release.bz2" location="${release}/${project.namever}.tar.bz2"/> + + <macrodef name="iterate"> + <attribute name="target"/> + <attribute name="modules" default="${modules}"/> + <element name="elements" implicit="true" optional="true"/> + <sequential> + <subant target="@{target}" antfile="build.xml"> + <filelist dir="." files="@{modules}"/> + <elements/> + </subant> + </sequential> + </macrodef> + + <target name="compile" description="compile sources"> + <iterate target="compile"/> + </target> + + <target name="compile-tests" description="compile unit tests"> + <iterate target="compile-tests"/> + </target> + + <target name="test" description="execute unit tests"> + <iterate target="test"/> + </target> + + <target name="jar" description="create jars"> + <iterate target="jar"/> + </target> + + <target name="jar-tests" description="create unit test jars"> + <iterate target="jar-tests"/> + </target> + + <target name="libs" description="copy dependencies into build directory"> + <iterate target="libs"/> + </target> + + <target name="doc" description="generate api-doc"> + <iterate target="doc"/> + </target> + + <target name="check-manifest"> + <uptodate property="manifest.done" targetfile="${qpid.jar}"> + <srcfiles dir="${build.lib}" includes="**/*.jar"/> + </uptodate> + </target> + + <target name="manifest" depends="jar,libs,check-manifest" unless="manifest.done"> + <manifestclasspath property="qpid.jar.classpath" jarfile="${qpid.jar}"> + <classpath> + <fileset dir="${build.lib}" includes="**/*.jar"/> + </classpath> + </manifestclasspath> + + <jar destfile="${qpid.jar}"> + <manifest> + <attribute name="Class-Path" value="${qpid.jar.classpath}"/> + </manifest> + </jar> + </target> + + <target name="build" depends="manifest" description="compile and copy resources into build tree"> + <iterate target="build"/> + </target> + + <target name="prepare"> + <mkdir dir="${release}"/> + </target> + + <target name="zip" depends="build,prepare" description="produce a zip archive of the distribution tree"> + <zip destfile="${release.zip}"> + <zipfileset dir="${build}" prefix="${project.namever}" excludes="${release.excludes}"/> + </zip> + </target> + + <target name="tar" depends="build,prepare" description="produce a tar archive of the distribution tree"> + <tar destfile="${release.tar}"> + <tarfileset dir="${build}" prefix="${project.namever}" excludes="${release.excludes}"/> + </tar> + </target> + + <target name="gzip" depends="tar" description="produce a gzipped tarball of the distribution tree"> + <gzip src="${release.tar}" destfile="${release.tgz}"/> + </target> + + <target name="bzip2" depends="tar" description="produze a bzipped tarball of the distribution tree"> + <bzip2 src="${release.tar}" destfile="${release.bz2}"/> + </target> + + <target name="archive" depends="zip,gzip,bzip2" description="produce all archive formats of the distribution tree"/> + + <target name="clean" description="remove all build artifacts"> + <iterate target="clean"/> + <delete dir="${build}"/> + <delete dir="${release}"/> + </target> + +</project> diff --git a/java/client/build.xml b/java/client/build.xml new file mode 100644 index 0000000000..847c38b3eb --- /dev/null +++ b/java/client/build.xml @@ -0,0 +1,37 @@ +<!-- + - + - 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="AMQ Client" default="build"> + + <property name="module.depends" value="common"/> + <property name="module.test.depends" value="broker"/> + + <import file="../module.xml"/> + + <property name="output.dir" value="${module.precompiled}/org/apache/qpidity/filter/selector"/> + + <target name="precompile"> + <mkdir dir="${output.dir}"/> + <javacc target="src/main/grammar/SelectorParser.jj" + outputdirectory="${output.dir}" + javacchome="${project.root}/lib"/> + </target> + +</project> diff --git a/java/common.xml b/java/common.xml new file mode 100644 index 0000000000..5053bdd3aa --- /dev/null +++ b/java/common.xml @@ -0,0 +1,97 @@ +<!-- + - + - 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="common"> + + <dirname property="project.root" file="${ant.file.common}"/> + + <property name="project.name" value="qpid"/> + <property name="project.version" value="incubating-M3"/> + <property name="project.namever" value="${project.name}-${project.version}"/> + + <property name="build" location="${project.root}/build"/> + <property name="build.bin" location="${build}/bin"/> + <property name="build.etc" location="${build}/etc"/> + <property name="build.lib" location="${build}/lib"/> + <property name="build.results" location="${build}/results"/> + <property name="build.report" location="${build}/report"/> + <property name="build.release" location="${build}/release"/> + <property name="build.release.prepare" location="${build.release}/prepare"/> + + <property name="java.target" value="1.5"/> + <property name="java.source" value="1.5"/> + + <property name="release" location="${project.root}/release"/> + + <property name="tasks" location="${project.root}/tasks"/> + <property name="tasks.classes" location="${tasks}/classes"/> + <property name="tasks.src" location="${tasks}/src"/> + + <macrodef name="indirect"> + <attribute name="name"/> + <attribute name="variable"/> + <sequential> + <property name="@{name}" value="${@{variable}}"/> + </sequential> + </macrodef> + + <macrodef name="echo-path"> + <attribute name="refid"/> + <sequential> + <property name="@{refid}" refid="@{refid}"/> + <echo message="@{refid} = ${@{refid}}"/> + <pathconvert property="@{refid}.pretty" + refid="@{refid}" + pathsep="${line.separator} |-- "/> + <echo message="@{refid}.pretty =${line.separator} |-- ${@{refid}.pretty}"/> + </sequential> + </macrodef> + + <macrodef name="echo-prop"> + <attribute name="name"/> + <sequential> + <echo message="@{name} = ${@{name}}"/> + </sequential> + </macrodef> + + <mkdir dir="${tasks.classes}"/> + <javac srcdir="${tasks.src}" destdir="${tasks.classes}" + classpath="${java.class.path}"/> + + <taskdef name="map" classname="org.apache.qpid.tasks.Map" + classpath="${tasks.classes}"/> + <taskdef name="foreach" classname="org.apache.qpid.tasks.Foreach" + classpath="${tasks.classes}"/> + + <target name="clean-tasks"> + <delete dir="${tasks.classes}"/> + </target> + + <target name="report" description="generate test report"> + <mkdir dir="${build.report}"/> + <junitreport todir="${build.report}"> + <fileset dir="${build.results}"> + <include name="TEST-*.xml"/> + </fileset> + <report todir="${build.report}"/> + </junitreport> + </target> + +</project> diff --git a/java/common/build.xml b/java/common/build.xml new file mode 100644 index 0000000000..da5d7a5759 --- /dev/null +++ b/java/common/build.xml @@ -0,0 +1,106 @@ +<!-- + - + - 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="AMQ Common" default="build"> + + <import file="../module.xml"/> + + <property name="gentools.home" location="${project.root}/../gentools" /> + <property name="generated.package" value="org/apache/qpid/framing" /> + <property name="generated.dir" location="${module.precompiled}/${generated.package}" /> + <property name="xml.spec.dir" location="${project.root}/../specs" /> + <property name="xml.spec.deps" value="amqp.0-8.xml cluster.0-8.xml" /> + <property name="xml.spec.list" value="${xml.spec.dir}/amqp.0-8.xml ${xml.spec.dir}/cluster.0-8.xml" /> + <property name="mllib.dir" value="${project.root}/../python" /> + <property name="gentools.timestamp" location="${generated.dir}/gentools.timestamp" /> + <property name="jython.timestamp" location="${generated.dir}/jython.timestamp" /> + + <target name="check_jython_deps"> + <uptodate property="jython.notRequired" targetfile="${jython.timestamp}"> + <srcfiles dir="${xml.spec.dir}" includes="amqp.0-10-preview.xml" /> + </uptodate> + </target> + + <target name="jython" depends="check_jython_deps" unless="jython.notRequired"> + <java classname="org.python.util.jython" fork="true" failonerror="true"> + <arg value="-Dpython.cachedir.skip=true"/> + <arg value="-Dpython.path=${basedir}/jython-lib.jar/Lib${path.separator}${mllib.dir}"/> + <arg value="${basedir}/generate"/> + <arg value="${module.precompiled}"/> + <arg value="org.apache.qpidity.transport"/> + <arg value="${xml.spec.dir}/amqp.0-10-preview.xml"/> + <classpath> + <pathelement location="jython-2.2-rc2.jar"/> + </classpath> + </java> + <touch file="${jython.timestamp}" /> + </target> + + <target name="compile_gentools"> + <ant dir="${gentools.home}" /> + </target> + + <target name="check_gentool_deps"> + <uptodate property="gentools.notRequired" targetfile="${gentools.timestamp}"> + <srcfiles dir="${xml.spec.dir}" includes="${xml.spec.deps}" /> + </uptodate> + </target> + + <target name="gentools" depends="compile_gentools,check_gentool_deps" unless="gentools.notRequired"> + <mkdir dir="${generated.dir}"/> + <java classname="org.apache.qpid.gentools.Main" fork="true" dir="${gentools.home}/src" failonerror="true"> + <arg line="-j -o ${generated.dir} -t ${project.root}/common/templates ${xml.spec.list}"/> + <classpath> + <pathelement path="${gentools.home}/src" /> + <fileset dir="${gentools.home}/lib"> + <include name="**/*.jar"/> + </fileset> + </classpath> + </java> + <touch file="${gentools.timestamp}" /> + </target> + + <property name="version.file" location="${module.classes}/qpidversion.properties"/> + <property file="${version.file}" prefix="old."/> + + <target name="check-version"> + <exec executable="svnversion" spawn="false" failifexecutionfails="false" + dir="${project.root}" outputproperty="qpid.svnversion"> + <arg line="."/> + </exec> + <condition property="version.stale"> + <not> + <equals arg1="${qpid.svnversion}" arg2="${old.qpid.svnversion}"/> + </not> + </condition> + </target> + + <target name="version" depends="check-version" if="version.stale"> + <!-- Write the version.properties out. --> + <propertyfile file="${version.file}"> + <entry key="qpid.svnversion" value="${qpid.svnversion}"/> + <entry key="qpid.name" value="${project.name}"/> + <entry key="qpid.version" value="${project.version}"/> + </propertyfile> + </target> + + <target name="precompile" depends="gentools,jython,version"/> + +</project> diff --git a/java/common/jython-2.2-rc2.jar b/java/common/jython-2.2-rc2.jar Binary files differnew file mode 100644 index 0000000000..e25e2cb945 --- /dev/null +++ b/java/common/jython-2.2-rc2.jar diff --git a/java/integrationtests/build.xml b/java/integrationtests/build.xml new file mode 100644 index 0000000000..c37dd4a893 --- /dev/null +++ b/java/integrationtests/build.xml @@ -0,0 +1,28 @@ +<!-- + - + - 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="Integration Tests" default="build"> + + <property name="module.depends" value="systests client common"/> + <property name="module.dist" value="false"/> + + <import file="../module.xml"/> + +</project> diff --git a/java/lib/com.ibm.icu-3.4.4.jar b/java/lib/com.ibm.icu-3.4.4.jar Binary files differnew file mode 100644 index 0000000000..9df503a2a3 --- /dev/null +++ b/java/lib/com.ibm.icu-3.4.4.jar diff --git a/java/lib/commons-cli-1.0.jar b/java/lib/commons-cli-1.0.jar Binary files differnew file mode 100644 index 0000000000..22a004e14e --- /dev/null +++ b/java/lib/commons-cli-1.0.jar diff --git a/java/lib/commons-codec-1.3.jar b/java/lib/commons-codec-1.3.jar Binary files differnew file mode 100644 index 0000000000..957b6752af --- /dev/null +++ b/java/lib/commons-codec-1.3.jar diff --git a/java/lib/commons-collections-3.2.jar b/java/lib/commons-collections-3.2.jar Binary files differnew file mode 100644 index 0000000000..75580be255 --- /dev/null +++ b/java/lib/commons-collections-3.2.jar diff --git a/java/lib/commons-configuration-1.2.jar b/java/lib/commons-configuration-1.2.jar Binary files differnew file mode 100644 index 0000000000..574d0ac789 --- /dev/null +++ b/java/lib/commons-configuration-1.2.jar diff --git a/java/lib/commons-lang-2.2.jar b/java/lib/commons-lang-2.2.jar Binary files differnew file mode 100644 index 0000000000..b9105611f3 --- /dev/null +++ b/java/lib/commons-lang-2.2.jar diff --git a/java/lib/commons-logging-1.0.4.jar b/java/lib/commons-logging-1.0.4.jar Binary files differnew file mode 100644 index 0000000000..b73a80fab6 --- /dev/null +++ b/java/lib/commons-logging-1.0.4.jar diff --git a/java/lib/geronimo-jms_1.1_spec-1.0.jar b/java/lib/geronimo-jms_1.1_spec-1.0.jar Binary files differnew file mode 100644 index 0000000000..42bf403e28 --- /dev/null +++ b/java/lib/geronimo-jms_1.1_spec-1.0.jar diff --git a/java/lib/javacc.jar b/java/lib/javacc.jar Binary files differnew file mode 100644 index 0000000000..5506008402 --- /dev/null +++ b/java/lib/javacc.jar diff --git a/java/lib/junit-3.8.1.jar b/java/lib/junit-3.8.1.jar Binary files differnew file mode 100644 index 0000000000..674d71e89e --- /dev/null +++ b/java/lib/junit-3.8.1.jar diff --git a/java/lib/junit-toolkit-0.6-SNAPSHOT.jar b/java/lib/junit-toolkit-0.6-SNAPSHOT.jar Binary files differnew file mode 100644 index 0000000000..931c18ec25 --- /dev/null +++ b/java/lib/junit-toolkit-0.6-SNAPSHOT.jar diff --git a/java/lib/log4j-1.2.12.jar b/java/lib/log4j-1.2.12.jar Binary files differnew file mode 100644 index 0000000000..9b5a720088 --- /dev/null +++ b/java/lib/log4j-1.2.12.jar diff --git a/java/lib/mina-core-1.1.5.jar b/java/lib/mina-core-1.1.5.jar Binary files differnew file mode 100644 index 0000000000..835a00df53 --- /dev/null +++ b/java/lib/mina-core-1.1.5.jar diff --git a/java/lib/mina-filter-ssl-1.1.5.jar b/java/lib/mina-filter-ssl-1.1.5.jar Binary files differnew file mode 100644 index 0000000000..8e917a35ee --- /dev/null +++ b/java/lib/mina-filter-ssl-1.1.5.jar diff --git a/java/lib/org.eclipse.core.commands-3.2.0.jar b/java/lib/org.eclipse.core.commands-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..c864864689 --- /dev/null +++ b/java/lib/org.eclipse.core.commands-3.2.0.jar diff --git a/java/lib/org.eclipse.core.contenttype-3.2.0.jar b/java/lib/org.eclipse.core.contenttype-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..816e3fc938 --- /dev/null +++ b/java/lib/org.eclipse.core.contenttype-3.2.0.jar diff --git a/java/lib/org.eclipse.core.expressions-3.2.0.jar b/java/lib/org.eclipse.core.expressions-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..51d2a0204c --- /dev/null +++ b/java/lib/org.eclipse.core.expressions-3.2.0.jar diff --git a/java/lib/org.eclipse.core.jobs-3.2.0.jar b/java/lib/org.eclipse.core.jobs-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..995bcd2e27 --- /dev/null +++ b/java/lib/org.eclipse.core.jobs-3.2.0.jar diff --git a/java/lib/org.eclipse.core.runtime-3.2.0.jar b/java/lib/org.eclipse.core.runtime-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..85e61cca58 --- /dev/null +++ b/java/lib/org.eclipse.core.runtime-3.2.0.jar diff --git a/java/lib/org.eclipse.core.runtime.compatibility.auth-3.2.0.jar b/java/lib/org.eclipse.core.runtime.compatibility.auth-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..26bb49fe12 --- /dev/null +++ b/java/lib/org.eclipse.core.runtime.compatibility.auth-3.2.0.jar diff --git a/java/lib/org.eclipse.core.runtime.compatibility.registry-3.2.0.jar b/java/lib/org.eclipse.core.runtime.compatibility.registry-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..4ffbb0db56 --- /dev/null +++ b/java/lib/org.eclipse.core.runtime.compatibility.registry-3.2.0.jar diff --git a/java/lib/org.eclipse.equinox.common-3.2.0.jar b/java/lib/org.eclipse.equinox.common-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..e28a631ebb --- /dev/null +++ b/java/lib/org.eclipse.equinox.common-3.2.0.jar diff --git a/java/lib/org.eclipse.equinox.preferences-3.2.0.jar b/java/lib/org.eclipse.equinox.preferences-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..0ca4767ced --- /dev/null +++ b/java/lib/org.eclipse.equinox.preferences-3.2.0.jar diff --git a/java/lib/org.eclipse.equinox.registry-3.2.0.jar b/java/lib/org.eclipse.equinox.registry-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..750fab0e76 --- /dev/null +++ b/java/lib/org.eclipse.equinox.registry-3.2.0.jar diff --git a/java/lib/org.eclipse.help-3.2.0.jar b/java/lib/org.eclipse.help-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..12ac13f918 --- /dev/null +++ b/java/lib/org.eclipse.help-3.2.0.jar diff --git a/java/lib/org.eclipse.jface-3.2.0.jar b/java/lib/org.eclipse.jface-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..1d5035a859 --- /dev/null +++ b/java/lib/org.eclipse.jface-3.2.0.jar diff --git a/java/lib/org.eclipse.osgi-3.2.0.jar b/java/lib/org.eclipse.osgi-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..7ad4b9eff3 --- /dev/null +++ b/java/lib/org.eclipse.osgi-3.2.0.jar diff --git a/java/lib/org.eclipse.swt-3.2.0.jar b/java/lib/org.eclipse.swt-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..0b2be574ed --- /dev/null +++ b/java/lib/org.eclipse.swt-3.2.0.jar diff --git a/java/lib/org.eclipse.swt.win32.win32.x86-3.2.0.jar b/java/lib/org.eclipse.swt.win32.win32.x86-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..8fbebc2401 --- /dev/null +++ b/java/lib/org.eclipse.swt.win32.win32.x86-3.2.0.jar diff --git a/java/lib/org.eclipse.ui-3.2.0.jar b/java/lib/org.eclipse.ui-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..b96dac530d --- /dev/null +++ b/java/lib/org.eclipse.ui-3.2.0.jar diff --git a/java/lib/org.eclipse.ui.forms-3.2.0.jar b/java/lib/org.eclipse.ui.forms-3.2.0.jar Binary files differnew file mode 100644 index 0000000000..460585e68b --- /dev/null +++ b/java/lib/org.eclipse.ui.forms-3.2.0.jar diff --git a/java/lib/org.eclipse.ui.workbench-3.2.1.jar b/java/lib/org.eclipse.ui.workbench-3.2.1.jar Binary files differnew file mode 100644 index 0000000000..4a10e210df --- /dev/null +++ b/java/lib/org.eclipse.ui.workbench-3.2.1.jar diff --git a/java/lib/slf4j-api-1.4.0.jar b/java/lib/slf4j-api-1.4.0.jar Binary files differnew file mode 100644 index 0000000000..9ce2532aa4 --- /dev/null +++ b/java/lib/slf4j-api-1.4.0.jar diff --git a/java/lib/slf4j-log4j12-1.4.0.jar b/java/lib/slf4j-log4j12-1.4.0.jar Binary files differnew file mode 100644 index 0000000000..e8e09f35ca --- /dev/null +++ b/java/lib/slf4j-log4j12-1.4.0.jar diff --git a/java/lib/xalan-2.7.0.jar b/java/lib/xalan-2.7.0.jar Binary files differnew file mode 100644 index 0000000000..007be3960a --- /dev/null +++ b/java/lib/xalan-2.7.0.jar diff --git a/java/management/eclipse-plugin/build.xml b/java/management/eclipse-plugin/build.xml new file mode 100644 index 0000000000..492783e574 --- /dev/null +++ b/java/management/eclipse-plugin/build.xml @@ -0,0 +1,27 @@ +<!-- + - + - 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="Eclipse Plugin" default="build"> + + <property name="module.depends" value="broker common"/> + + <import file="../../module.xml"/> + +</project> diff --git a/java/module.xml b/java/module.xml new file mode 100644 index 0000000000..7ac00e7b73 --- /dev/null +++ b/java/module.xml @@ -0,0 +1,209 @@ +<!-- + - + - 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="module"> + + <import file="common.xml"/> + + <map property="module" value="${basedir}" split="${path.separator}"> + <globmapper from="${project.root}${file.separator}*" to="*"/> + </map> + + <property file="${project.root}/build.deps"/> + + <property name="module.build" location="${build}/${module}"/> + <property name="module.classes" location="${module.build}/classes"/> + <property name="module.precompiled" location="${module.build}/src"/> + <property name="module.api" location="${module.build}/api"/> + <property name="module.test.classes" location="${module.build}/test/classes"/> + <property name="module.src" location="src/main/java"/> + <property name="module.test.src" location="src/test/java"/> + <property name="module.bin" location="bin"/> + <property name="module.etc" location="etc"/> + + <map property="module.name" value="${module}"> + <filtermapper> + <replacestring from="${file.separator}" to="-"/> + </filtermapper> + </map> + + <indirect name="module.libs" variable="${module.name}.libs"/> + <indirect name="module.test.libs" variable="${module.name}.test.libs"/> + + <path id="module.libs"> + <filelist dir="${project.root}" files="${module.libs}"/> + </path> + + <path id="module.test.libs"> + <filelist dir="${project.root}" files="${module.test.libs}"/> + </path> + + <path id="module.src.path"> + <pathelement location="${module.src}"/> + <pathelement location="${module.precompiled}"/> + </path> + + <property name="module.jar" location="${build.lib}/${project.name}-${module.name}-${project.version}.jar"/> + <property name="module.test.jar" location="${build.lib}/${project.name}-${module.name}-tests-${project.version}.jar"/> + + <!-- module.depends and module.test.depends are supplied by the importing file --> + <property name="module.depends" value=""/> + <property name="module.test.depends" value=""/> + + <map property="module.depends.path" value="${module.depends}" join="${path.separator}"> + <globmapper from="*" to="${build}/*/classes"/> + </map> + + <map property="module.test.depends.path" value="${module.test.depends}" join="${path.separator}"> + <globmapper from="*" to="${build}/*/classes"/> + </map> + + <path id="module.class.path"> + <pathelement location="${module.classes}"/> + <pathelement path="${module.depends.path}"/> + <path refid="module.libs"/> + </path> + + <path id="module.test.path"> + <pathelement path="${module.test.classes}"/> + <path refid="module.class.path"/> + <pathelement path="${module.test.depends.path}"/> + <path refid="module.test.libs"/> + </path> + + <target name="debug"> + <echo-prop name="basedir"/> + <echo-prop name="project.root"/> + <echo-prop name="module"/> + <echo-prop name="module.libs"/> + <echo-prop name="module.test.libs"/> + <echo-prop name="module.name"/> + <echo-prop name="module.jar"/> + <echo-prop name="module.depends"/> + <echo-prop name="module.depends.path"/> + <echo-prop name="module.test.depends"/> + <echo-prop name="module.test.depends.path"/> + <echo-path refid="module.src.path"/> + <echo-path refid="module.class.path"/> + <echo-path refid="module.test.path"/> + </target> + + <target name="prepare"> + <mkdir dir="${build.bin}"/> + <mkdir dir="${build.etc}"/> + <mkdir dir="${build.lib}"/> + <mkdir dir="${build.results}"/> + <mkdir dir="${module.classes}"/> + <mkdir dir="${module.precompiled}"/> + <mkdir dir="${module.api}"/> + <mkdir dir="${module.test.classes}"/> + </target> + + <target name="precompile"/> + + <target name="compile" depends="prepare,precompile" description="compile sources"> + <javac source="${java.source}" target="${java.target}" + destdir="${module.classes}" debug="on"> + <src refid="module.src.path"/> + <classpath refid="module.class.path"/> + </javac> + + <!-- copy any non java src files into the build tree, e.g. log4j.properties --> + <copy todir="${module.classes}" verbose="true"> + <fileset dir="${module.src}"> + <exclude name="**/*.java"/> + <exclude name="**/package.html"/> + </fileset> + </copy> + </target> + + <available property="module.test.src.exists" file="${module.test.src}"/> + + <target name="precompile-tests" if="module.test.src.exists"/> + + <target name="compile-tests" depends="compile,precompile-tests" if="module.test.src.exists" + description="compilte unit tests"> + <javac target="${java.target}" source="${java.source}" + destdir="${module.test.classes}" debug="on" + srcdir="${module.test.src}"> + <classpath refid="module.test.path"/> + </javac> + + <!-- copy any non java src files into the build tree, e.g. log4j.properties --> + <copy todir="${module.test.classes}" verbose="true"> + <fileset dir="${module.test.src}"> + <exclude name="**/*.java"/> + <exclude name="**/package.html"/> + </fileset> + </copy> + </target> + + <target name="test" depends="compile-tests" if="module.test.src.exists" + description="execute unit tests"> + <junit fork="yes" showoutput="true" haltonfailure="no" timeout="90000"> + <formatter type="plain"/> + <formatter type="xml"/> + <classpath refid="module.test.path"/> + <batchtest fork="yes" todir="${build.results}"> + <fileset dir="${module.test.src}"> + <include name="**/*Test.java"/> + </fileset> + </batchtest> + </junit> + </target> + + <target name="build" depends="compile" description="compile and copy resources into build tree"> + <copy todir="${build.bin}" failonerror="false"> + <fileset dir="${module.bin}"/> + </copy> + <chmod dir="${build.bin}" perm="ugo+rx" includes="**/*"/> + <copy todir="${build.etc}" failonerror="false"> + <fileset dir="${module.etc}"/> + </copy> + </target> + + <target name="jar" depends="compile" description="create jar"> + <jar destfile="${module.jar}" basedir="${module.classes}"/> + </target> + + <target name="jar-tests" depends="compile-tests" description="create unit test jar"> + <jar destfile="${module.test.jar}" basedir="${module.test.classes}"/> + </target> + + <target name="libs" description="copy dependencies into build tree"> + <copy todir="${build.lib}" failonerror="false" flatten="true"> + <path refid="module.libs"/> + </copy> + </target> + + <uptodate property="doc.done" targetfile="${module.api}/index.html"> + <srcfiles dir="${module.src}" includes="**/*.java"/> + </uptodate> + + <target name="doc" depends="prepare" unless="doc.done" description="generate api-doc"> + <javadoc destdir="${module.api}" sourcepathref="module.src.path" + classpathref="module.class.path" packagenames="*"/> + </target> + + <target name="clean" description="remove build artifacts"> + <delete dir="${module.build}"/> + </target> + +</project> diff --git a/java/perftests/build.xml b/java/perftests/build.xml new file mode 100644 index 0000000000..670351886d --- /dev/null +++ b/java/perftests/build.xml @@ -0,0 +1,28 @@ +<!-- + - + - 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="Performance Tests" default="build"> + + <property name="module.depends" value="systests client broker common"/> + <property name="module.dist" value="false"/> + + <import file="../module.xml"/> + +</project> diff --git a/java/systests/build.xml b/java/systests/build.xml new file mode 100644 index 0000000000..4a45bfb28e --- /dev/null +++ b/java/systests/build.xml @@ -0,0 +1,27 @@ +<!-- + - + - 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="System Tests" default="build"> + <property name="module.depends" value="client broker common"/> + <property name="module.dist" value="false"/> + + <import file="../module.xml"/> + +</project> |