Commit 58d8a1ec authored by Lubomir Bulej's avatar Lubomir Bulej

build.xml: download dependencies using the Ivy dependency manager.

build.xml: check presence of the required dependency artifacts.
build.xml: make JUnit generate test reports.
lib: remove included dependencies.
parent 0389aab7
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<classpathentry kind="src" output="output/build/shvm-dispatch" path="src-shvm-dispatch"/> <classpathentry kind="src" output="output/build/shvm-dispatch" path="src-shvm-dispatch"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="output/lib/disl-bypass.jar"/> <classpathentry kind="lib" path="output/lib/disl-bypass.jar"/>
<classpathentry kind="lib" path="lib/asm-debug-all-5.0.3.jar"/> <classpathentry kind="lib" path="lib/disl/asm-debug-all.jar" sourcepath="lib/devel/asm-debug-all-source.jar"/>
<classpathentry kind="lib" path="lib/hamcrest-core-1.3.jar"/> <classpathentry kind="lib" path="lib/disl/log4j.jar" sourcepath="lib/devel/log4j-source.jar"/>
<classpathentry kind="lib" path="lib/junit-4.11.jar"/> <classpathentry kind="lib" path="lib/test/junit.jar" sourcepath="lib/devel/junit-source.jar"/>
<classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/> <classpathentry kind="lib" path="lib/test/hamcrest-core.jar"/>
<classpathentry kind="output" path="output/build/disl"/> <classpathentry kind="output" path="output/build/disl"/>
</classpath> </classpath>
lib.dir=lib lib.dir=lib
lib.ant.dir=${lib.dir}/ant
asm.lib=asm-debug-all-5.0.3.jar lib.disl.dir=${lib.dir}/disl
asm.path=${lib.dir}/${asm.lib} lib.test.dir=${lib.dir}/test
junit.core.lib=junit-4.11.jar
junit.core.path=${lib.dir}/${junit.core.lib}
junit.hamcrest.lib=hamcrest-core-1.3.jar
junit.hamcrest.path=${lib.dir}/${junit.hamcrest.lib}
log4j.lib=log4j-1.2.15.jar
log4j.path=${lib.dir}/${log4j.lib}
ant-contrib.lib=ant-contrib-0.6.jar
ant-contrib.resource=net/sf/antcontrib/antlib.xml
ant-contrib.path=${lib.dir}/${ant-contrib.lib}
src.bin=bin src.bin=bin
src.disl=src-disl src.disl=src-disl
...@@ -32,7 +19,7 @@ src.doc.intro=${src.doc}/intro ...@@ -32,7 +19,7 @@ src.doc.intro=${src.doc}/intro
src.examples=examples src.examples=examples
# Based output directory # Base output directory
out.dir=output out.dir=output
...@@ -48,11 +35,19 @@ build.shvm.dispatch=${build.shvm}-dispatch ...@@ -48,11 +35,19 @@ build.shvm.dispatch=${build.shvm}-dispatch
build.test=${build.dir}/test build.test=${build.dir}/test
build.doc.intro=${build.dir}/intro build.doc.intro=${build.dir}/intro
# Build system libraries
build.ivy.url = http://central.maven.org/maven2/org/apache/ivy/ivy/${ivy.rev}/ivy-${ivy.rev}.jar
build.ivy.path = ${lib.ant.dir}/ivy.jar
build.ivy.file = dependencies.xml
build.artifacts.list = ${lib.dir}/artifacts.lst
# Directories for output artifacts # Directories for output artifacts
out.lib=${out.dir}/lib out.lib=${out.dir}/lib
out.src=${out.dir}/src out.src=${out.dir}/src
out.test=${out.dir}/test out.test=${out.dir}/test
out.junit=${out.dir}/junit
out.doc.jdoc=${out.dir}/jdoc out.doc.jdoc=${out.dir}/jdoc
......
This diff is collapsed.
ivy.rev=2.4.0
ant-contrib.rev=1.0b3
ant-contrib.org=ant-contrib
junit.rev=4.12
junit.org=junit
asm.rev=5.0.4
asm.org=org.ow2.asm
log4j.rev=1.2.17
log4j.org=log4j
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module
version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
>
<info organisation="ch.usi.dag" module="disl"/>
<configurations>
<conf name="ant" description="Libraries needed by Ant" />
<conf name="disl" description="Libraries needed by DiSL" />
<conf name="test" description="Libraries needed for testing" />
<conf name="devel" description="Files useful for development" />
</configurations>
<dependencies>
<!-- Build system libraries: no need for sources/javadoc -->
<dependency org="${ant-contrib.org}" name="ant-contrib" rev="${ant-contrib.rev}" conf="ant->master" />
<!-- Test libraries -->
<dependency org="${junit.org}" name="junit" rev="${junit.rev}" conf="test->default;devel->sources,javadoc" />
<!-- DiSL libraries -->
<dependency org="${asm.org}" name="asm-debug-all" rev="${asm.rev}" conf="disl->default;devel->sources,javadoc" />
<dependency org="${log4j.org}" name="log4j" rev="${log4j.rev}" conf="disl->default;devel->sources,javadoc" />
</dependencies>
</ivy-module>
This directory contains libraries required for DiSL compilation. Initially, it
only contains this README and the 'artifacts.lst' file which contains a list
of expected dependency artifacts. When building DiSL using Ant, the
dependencies will be automatically downloaded using the Ivy dependency
manager. The retrieval of dependencies can be forced by running 'ant
download-deps' from the project's base directory.
After downloading the dependencies, this directory will contain several
subdirectories with artifacts required by the build process. The contents of
those directories will be checked against the contents of 'artifacts.lst'
during build initialization to make sure that all required dependencies are
present before starting the build.
The contents of this directory are not affected when running 'ant clean' and
have to be cleaned explicitly using 'ant clean-deps'.
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The name Ant-Contrib must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact
* ant-contrib-developers@lists.sourceforge.net.
*
* 5. Products derived from this software may not be called "Ant-Contrib"
* nor may "Ant-Contrib" appear in their names without prior written
* permission of the Ant-Contrib project.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*/
lib/ant/ant-contrib.jar
lib/ant/ivy.jar
lib/disl/asm-debug-all.jar
lib/disl/log4j.jar
lib/test/hamcrest-core.jar
lib/test/junit.jar
\ No newline at end of file
*******************************************************************************
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************
This directory contains the documentation of the product.
BSD License
Copyright (c) 2000-2006, www.hamcrest.org
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer. Redistributions in binary form must reproduce
the above copyright notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
Neither the name of Hamcrest nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment