diff options
author | wisberg <wisberg> | 2005-06-09 00:05:40 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-06-09 00:05:40 +0000 |
commit | ef8037126b0a8838c8914f63f8b5b3a09fcd3cea (patch) | |
tree | 5c15f63eaec9cb94b7aebb53397354d5cb444c09 /build/test-build-script.xml | |
parent | 696e60f8a031d3c687965bf58222f6c8ad7a91ab (diff) | |
download | aspectj-ef8037126b0a8838c8914f63f8b5b3a09fcd3cea.tar.gz aspectj-ef8037126b0a8838c8914f63f8b5b3a09fcd3cea.zip |
revamped build scripts using Ant 1.6.3 features. Now using local.properties instead of command-line flags and sharing build-properties.xml.
Diffstat (limited to 'build/test-build-script.xml')
-rw-r--r-- | build/test-build-script.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/build/test-build-script.xml b/build/test-build-script.xml new file mode 100644 index 000000000..fc02e3999 --- /dev/null +++ b/build/test-build-script.xml @@ -0,0 +1,42 @@ +<!-- ========================================================================= --> +<!-- Copyright (c) 2005 Contributors --> +<!-- All rights reserved. --> +<!-- This program and the accompanying materials are made available --> +<!-- under the terms of the Eclipse Public License v1.0 --> +<!-- which accompanies this distribution and is available at --> +<!-- http://www.eclipse.org/legal/epl-v10.html --> +<!-- --> +<!-- Contributors: (See CVS checkin's) --> +<!-- Wes Isberg initial implementation --> +<!-- ========================================================================= --> + +<project name="test-build-script" default="all" basedir="."> + + <property name="modules.dir" location="${basedir}/.."/> + + <import file="${modules.dir}/build/build-properties.xml"/> + + <target name="all" depends="failures"/> + + <target name="failures" depends="init-properties"> + <delete file="${aj.failure.file}"/> + <echo message="-> no false negative (no file)"/> + <antcall target="fail-if-failures"/> + + <touch file="${aj.failure.file}"/> + <echo message="-> no false negative (empty file)"/> + <antcall target="fail-if-failures"/> + + <echo message="-> no false negative (unset Property)"/> + <report-if-failed text="not error text" property="unsetProperty"/> + <antcall target="fail-if-failures"/> + + <echo message="-> true negative (set Property)"/> + <property name="setProperty" value="."/> + <report-if-failed text="error text" property="setProperty"/> + <antcall target="fail-if-failures"/> + + <loadfile property="emit" srcfile="${aj.failure.file}"/> + <echo message="-> file contents: ${emit}"/> + </target> +</project>
\ No newline at end of file |