On 1/28/07, Stephen Duncan <[EMAIL PROTECTED]> wrote:
Can you resend the patch, it doesn't seem to have made it with your e-mail. ;)
Oops. Here it is. I also stuck a copy up on the web in case this doesn't work... http://people.apache.org/~rooneg/abdera-ivy-wip.diff -garrett
Index: core/ivy.xml =================================================================== --- core/ivy.xml (revision 0) +++ core/ivy.xml (revision 0) @@ -0,0 +1,38 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivy-module version='1.0'> + <info organisation='org.apache.abdera' + module='abdera-core' + revision='0.3.0-incubating'/> + + <publications> + <artifact/> + </publications> + + <dependencies> + <dependency org='org.apache.geronimo.specs' + name='geronimo-activation_1.0.2_spec' + rev='1.1' + /> + + <dependency org='junit' + name='junit' + rev='3.8.2' + /> + </dependencies> +</ivy-module> Index: core/build.xml =================================================================== --- core/build.xml (revision 0) +++ core/build.xml (revision 0) @@ -0,0 +1,88 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera-core' + default='compile'> + <property file='${basedir}/../build.properties'/> + + <condition property='ivy.home' value='${env.IVY_HOME}'> + <isset property='env.IVY_HOME' /> + </condition> + + <target name='init-ivy'> + <path id='ivy.lib.path'> + <fileset dir='${ivy.jar.dir}' includes='*.jar'/> + </path> + + <taskdef resource='fr/jayasoft/ivy/ant/antlib.xml' + uri='antlib:fr.jayasoft.ivy.ant' + classpathref='ivy.lib.path'/> + </target> + + <path id='dependencies'> + <fileset dir='${ivy.lib.dir}' includes='**/*.jar'/> + </path> + + <target name='resolve' depends='init-ivy'> + <ivy:retrieve/> + </target> + + <target name='compile' depends='resolve'> + <mkdir dir='${classes}'/> + + <javac srcdir='${src}' + debug='${debug}' + destdir='${classes}' + classpathref='dependencies' + /> + + <jar destfile='${target}/${ant.project.name}-${version}.jar' + basedir='${classes}' + /> + + <ivy:publish resolver='internal' + artifactspattern='${basedir}/${target}/[artifact]-[revision].[ext]'/> + </target> + + <target name='compile.tests' depends='compile'> + <mkdir dir='${test.classes}'/> + + <javac srcdir='${test.src}' + debug='${debug}' + destdir='${test.classes}' + classpathref='dependencies' + classpath='${classes}' + /> + + <copy todir='${test.classes}'> + <fileset dir='${resources}' includes='**/*'/> + </copy> + </target> + + <target name='test' depends='compile.tests'> + <java classpathref='dependencies' + classpath='${classes}:${test.classes}' + classname='org.apache.abdera.test.core.TestSuite' + fork='yes' + /> + </target> + + <target name='clean'> + <delete dir='${target}'/> + </target> +</project> Index: build.properties =================================================================== --- build.properties (revision 0) +++ build.properties (revision 0) @@ -0,0 +1,16 @@ +version=0.3.0-incubating + +target=target + +src=src/main/java +classes=${target}/classes +resources=src/main/resources + +test.src=src/test/java +test.classes=${target}/test-clases + +ivy.home=${user.home}/.ivy +ivy.jar.dir=${ivy.home}/jars +ivy.jar.file=${ivy.jar.dir}/ivy.jar +ivy.conf.file=${basedir}/../ivyconf.xml +ivy.lib.dir=${basedir}/../dependencies Index: parser/ivy.xml =================================================================== --- parser/ivy.xml (revision 0) +++ parser/ivy.xml (revision 0) @@ -0,0 +1,59 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivy-module version='1.0'> + <info organisation='org.apache.abdera' + module='abdera-parser' + revision='0.3.0-incubating'/> + + <dependencies> + <dependency org='org.apache.abdera' + name='abdera-core' + rev='0.3.0-incubating' + /> + + <dependency org='junit' + name='junit' + rev='3.8.2' + /> + + <dependency org='stax' + name='stax-api' + rev='1.0' + /> + + <dependency org='woodstox' + name='wstx-asl' + rev='2.0.5' + /> + + <dependency org='org.apache.ws.commons.axiom' + name='axiom-api' + rev='1.2.2' + /> + + <dependency org='org.apache.ws.commons.axiom' + name='axiom-impl' + rev='1.2.2' + /> + + <dependency org='jaxen' + name='jaxen' + rev='1.1-beta-7' + /> + </dependencies> +</ivy-module> Index: parser/build.xml =================================================================== --- parser/build.xml (revision 0) +++ parser/build.xml (revision 0) @@ -0,0 +1,88 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera-parser' + default='compile'> + <property file='${basedir}/../build.properties'/> + + <condition property='ivy.home' value='${env.IVY_HOME}'> + <isset property='env.IVY_HOME' /> + </condition> + + <target name='init-ivy'> + <path id='ivy.lib.path'> + <fileset dir='${ivy.jar.dir}' includes='*.jar'/> + </path> + + <taskdef resource='fr/jayasoft/ivy/ant/antlib.xml' + uri='antlib:fr.jayasoft.ivy.ant' + classpathref='ivy.lib.path'/> + </target> + + <path id='dependencies'> + <fileset dir='${ivy.lib.dir}' includes='**/*.jar'/> + </path> + + <target name='resolve' depends='init-ivy'> + <ivy:retrieve/> + </target> + + <target name='compile' depends='resolve'> + <mkdir dir='${classes}'/> + + <javac srcdir='${src}' + debug='${debug}' + destdir='${classes}' + classpathref='dependencies' + /> + + <jar destfile='${target}/${ant.project.name}-${version}.jar' + basedir='${classes}' + /> + + <ivy:publish resolver='internal' + artifactspattern='${basedir}/${target}/[artifact]-[revision].[ext]'/> + </target> + + <target name='compile.tests' depends='compile'> + <mkdir dir='${test.classes}'/> + + <javac srcdir='${test.src}' + debug='${debug}' + destdir='${test.classes}' + classpathref='dependencies' + classpath='${classes}' + /> + + <copy todir='${test.classes}'> + <fileset dir='${resources}' includes='**/*'/> + </copy> + </target> + + <target name='test' depends='compile.tests'> + <java classpathref='dependencies' + classpath='${classes}:${test.classes}' + classname='org.apache.abdera.test.parser.stax.TestSuite' + fork='yes' + /> + </target> + + <target name='clean'> + <delete dir='${target}'/> + </target> +</project> Index: build.xml =================================================================== --- build.xml (revision 0) +++ build.xml (revision 0) @@ -0,0 +1,66 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera' + default='compile'> + + <!-- Start junk for bootstrapping ivy... --> + <condition property="ivy.home" value="${env.IVY_HOME}"> + <isset property="env.IVY_HOME" /> + </condition> + + <property name="ivy.home" value="${user.home}/.ivy"/> + <property name="ivy.jar.dir" value="${ivy.home}/jars"/> + <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/> + <property name="ivy.install.version" value="1.4.1"/> + + <target name="download-ivy" unless="offline"> + <mkdir dir="${ivy.jar.dir}"/> + + <get src="http://www.jayasoft.org/downloads/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" + dest="${ivy.jar.file}" + usetimestamp="true"/> + </target> + + <target name="init-ivy" depends="download-ivy"> + <path id="ivy.lib.path"> + <fileset dir="${ivy.jar.dir}" includes="*.jar"/> + </path> + + <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml" + uri="antlib:fr.jayasoft.ivy.ant" + classpathref="ivy.lib.path"/> + </target> + <!-- End junk for bootstrapping ivy... --> + + <target name='compile' depends='init-ivy'> + <ant dir='core' target='compile'/> + <ant dir='parser' target='compile'/> + <ant dir='protocol' target='compile'/> + <ant dir='client' target='compile'/> + <ant dir='extensions' target='compile'/> + </target> + + <target name='clean'> + <ant dir='core' target='clean'/> + <ant dir='parser' target='clean'/> + <ant dir='protocol' target='clean'/> + <ant dir='client' target='clean'/> + <ant dir='extensions' target='clean'/> + </target> +</project> Index: extensions/ivy.xml =================================================================== --- extensions/ivy.xml (revision 0) +++ extensions/ivy.xml (revision 0) @@ -0,0 +1,44 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivy-module version='1.0'> + <info organisation='org.apache.abdera' + module='abdera-extensions' + revision='0.3.0-incubating'/> + + <dependencies> + <dependency org='org.apache.abdera' + name='abdera-parser' + rev='0.3.0-incubating' + /> + + <dependency org='org.apache.abdera' + name='abdera-client' + rev='0.3.0-incubating' + /> + + <dependency org='commons-httpclient' + name='commons-httpclient' + rev='3.0.1' + /> + + <dependency org='junit' + name='junit' + rev='3.8.2' + /> + </dependencies> +</ivy-module> Index: extensions/build.xml =================================================================== --- extensions/build.xml (revision 0) +++ extensions/build.xml (revision 0) @@ -0,0 +1,88 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera-extensions' + default='compile'> + <property file='${basedir}/../build.properties'/> + + <condition property='ivy.home' value='${env.IVY_HOME}'> + <isset property='env.IVY_HOME' /> + </condition> + + <target name='init-ivy'> + <path id='ivy.lib.path'> + <fileset dir='${ivy.jar.dir}' includes='*.jar'/> + </path> + + <taskdef resource='fr/jayasoft/ivy/ant/antlib.xml' + uri='antlib:fr.jayasoft.ivy.ant' + classpathref='ivy.lib.path'/> + </target> + + <path id='dependencies'> + <fileset dir='${ivy.lib.dir}' includes='**/*.jar'/> + </path> + + <target name='resolve' depends='init-ivy'> + <ivy:retrieve/> + </target> + + <target name='compile' depends='resolve'> + <mkdir dir='${classes}'/> + + <javac srcdir='${src}' + debug='${debug}' + destdir='${classes}' + classpathref='dependencies' + /> + + <jar destfile='${target}/${ant.project.name}-${version}.jar' + basedir='${classes}' + /> + + <ivy:publish resolver='internal' + artifactspattern='${basedir}/${target}/[artifact]-[revision].[ext]'/> + </target> + + <target name='compile.tests' depends='compile'> + <mkdir dir='${test.classes}'/> + + <javac srcdir='${test.src}' + debug='${debug}' + destdir='${test.classes}' + classpathref='dependencies' + classpath='${classes}' + /> + + <copy todir='${test.classes}'> + <fileset dir='${resources}' includes='**/*'/> + </copy> + </target> + + <target name='test' depends='compile.tests'> + <java classpathref='dependencies' + classpath='${classes}:${test.classes}' + classname='org.apache.abdera.test.ext.TestSuite' + fork='yes' + /> + </target> + + <target name='clean'> + <delete dir='${target}'/> + </target> +</project> Index: protocol/ivy.xml =================================================================== --- protocol/ivy.xml (revision 0) +++ protocol/ivy.xml (revision 0) @@ -0,0 +1,48 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivy-module version='1.0'> + <info organisation='org.apache.abdera' + module='abdera-protocol' + revision='0.3.0-incubating'/> + + <publications> + <artifact/> + </publications> + + <dependencies> + <dependency org='org.apache.abdera' + name='abdera-core' + rev='0.3.0-incubating' + /> + + <dependency org='commons-codec' + name='commons-codec' + rev='1.3' + /> + + <dependency org='org.apache.geronimo.specs' + name='geronimo-activation_1.0.2_spec' + rev='1.1' + /> + + <dependency org='junit' + name='junit' + rev='3.8.2' + /> + </dependencies> +</ivy-module> Index: protocol/build.xml =================================================================== --- protocol/build.xml (revision 0) +++ protocol/build.xml (revision 0) @@ -0,0 +1,88 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera-protocol' + default='compile'> + <property file='${basedir}/../build.properties'/> + + <condition property='ivy.home' value='${env.IVY_HOME}'> + <isset property='env.IVY_HOME' /> + </condition> + + <target name='init-ivy'> + <path id='ivy.lib.path'> + <fileset dir='${ivy.jar.dir}' includes='*.jar'/> + </path> + + <taskdef resource='fr/jayasoft/ivy/ant/antlib.xml' + uri='antlib:fr.jayasoft.ivy.ant' + classpathref='ivy.lib.path'/> + </target> + + <path id='dependencies'> + <fileset dir='${ivy.lib.dir}' includes='**/*.jar'/> + </path> + + <target name='resolve' depends='init-ivy'> + <ivy:retrieve/> + </target> + + <target name='compile' depends='resolve'> + <mkdir dir='${classes}'/> + + <javac srcdir='${src}' + debug='${debug}' + destdir='${classes}' + classpathref='dependencies' + /> + + <jar destfile='${target}/${ant.project.name}-${version}.jar' + basedir='${classes}' + /> + + <ivy:publish resolver='internal' + artifactspattern='${basedir}/${target}/[artifact]-[revision].[ext]'/> + </target> + + <target name='compile.tests' depends='compile'> + <mkdir dir='${test.classes}'/> + + <javac srcdir='${test.src}' + debug='${debug}' + destdir='${test.classes}' + classpathref='dependencies' + classpath='${classes}' + /> + + <copy todir='${test.classes}'> + <fileset dir='${resources}' includes='**/*'/> + </copy> + </target> + + <target name='test' depends='compile.tests'> + <java classpathref='dependencies' + classpath='${classes}:${test.classes}' + classname='org.apache.abdera.test.core.TestSuite' + fork='yes' + /> + </target> + + <target name='clean'> + <delete dir='${target}'/> + </target> +</project> Index: ivyconf.xml =================================================================== --- ivyconf.xml (revision 0) +++ ivyconf.xml (revision 0) @@ -0,0 +1,54 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivyconf> + <property name='local.repos' value='${ivy.home}/local-repos'/> + + <property name='maven2-repos-root' + value='http://repo1.maven.org/maven2/'/> + + <property name='maven2-incubating-repos-root' + value='http://people.apache.org/repo/m2-incubating-repository/'/> + + <property name='maven2-pattern' + value='[organisation]/[module]/[revision]/[module]-[revision].[ext]'/> + + <conf defaultResolver='abdera-resolver'/> + + <resolvers> + <chain name='abdera-resolver'> + <ibiblio name='maven2' + root='${maven2-repos-root}' + pattern='${maven2-pattern}' + m2compatible='true'/> + + <ibiblio name='maven2-incubating' + root='${maven2-incubating-repos-root}' + pattern='${maven2-pattern}' + m2compatible='true'/> + </chain> + + <filesystem name='internal'> + <ivy pattern='${local.repos}/[module]/ivy-[revision].xml'/> + <artifact pattern='${local.repos}/[module]/[artifact]-[revision].[ext]'/> + </filesystem> + </resolvers> + + <modules> + <module organisation="org.apache.abdera" name=".*" resolver="internal" /> + </modules> +</ivyconf> Index: client/ivy.xml =================================================================== --- client/ivy.xml (revision 0) +++ client/ivy.xml (revision 0) @@ -0,0 +1,44 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<ivy-module version='1.0'> + <info organisation='org.apache.abdera' + module='abdera-client' + revision='0.3.0-incubating'/> + + <dependencies> + <dependency org='org.apache.abdera' + name='abdera-parser' + rev='0.3.0-incubating' + /> + + <dependency org='org.apache.abdera' + name='abdera-protocol' + rev='0.3.0-incubating' + /> + + <dependency org='commons-httpclient' + name='commons-httpclient' + rev='3.0.1' + /> + + <dependency org='junit' + name='junit' + rev='3.8.2' + /> + </dependencies> +</ivy-module> Index: client/build.xml =================================================================== --- client/build.xml (revision 0) +++ client/build.xml (revision 0) @@ -0,0 +1,88 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. 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. For additional information regarding +copyright in this work, please see the NOTICE file in the top level +directory of this distribution. +--> +<project xmlns:ivy='antlib:fr.jayasoft.ivy.ant' + name='abdera-client' + default='compile'> + <property file='${basedir}/../build.properties'/> + + <condition property='ivy.home' value='${env.IVY_HOME}'> + <isset property='env.IVY_HOME' /> + </condition> + + <target name='init-ivy'> + <path id='ivy.lib.path'> + <fileset dir='${ivy.jar.dir}' includes='*.jar'/> + </path> + + <taskdef resource='fr/jayasoft/ivy/ant/antlib.xml' + uri='antlib:fr.jayasoft.ivy.ant' + classpathref='ivy.lib.path'/> + </target> + + <path id='dependencies'> + <fileset dir='${ivy.lib.dir}' includes='**/*.jar'/> + </path> + + <target name='resolve' depends='init-ivy'> + <ivy:retrieve/> + </target> + + <target name='compile' depends='resolve'> + <mkdir dir='${classes}'/> + + <javac srcdir='${src}' + debug='${debug}' + destdir='${classes}' + classpathref='dependencies' + /> + + <jar destfile='${target}/${ant.project.name}-${version}.jar' + basedir='${classes}' + /> + + <ivy:publish resolver='internal' + artifactspattern='${basedir}/${target}/[artifact]-[revision].[ext]'/> + </target> + + <target name='compile.tests' depends='compile'> + <mkdir dir='${test.classes}'/> + + <javac srcdir='${test.src}' + debug='${debug}' + destdir='${test.classes}' + classpathref='dependencies' + classpath='${classes}' + /> + + <copy todir='${test.classes}'> + <fileset dir='${resources}' includes='**/*'/> + </copy> + </target> + + <target name='test' depends='compile.tests'> + <java classpathref='dependencies' + classpath='${classes}:${test.classes}' + classname='org.apache.abdera.test.ext.TestSuite' + fork='yes' + /> + </target> + + <target name='clean'> + <delete dir='${target}'/> + </target> +</project>
