Author: jhm
Date: Mon Mar 22 20:58:13 2010
New Revision: 926328
URL: http://svn.apache.org/viewvc?rev=926328&view=rev
Log:
- single property for pointing to Ant core codebase
- checks for validation of the properties
Modified:
ant/sandbox/historical/xdocs/build.xml
Modified: ant/sandbox/historical/xdocs/build.xml
URL:
http://svn.apache.org/viewvc/ant/sandbox/historical/xdocs/build.xml?rev=926328&r1=926327&r2=926328&view=diff
==============================================================================
--- ant/sandbox/historical/xdocs/build.xml (original)
+++ ant/sandbox/historical/xdocs/build.xml Mon Mar 22 20:58:13 2010
@@ -7,19 +7,39 @@
-->
<property file="${user.home}/.${ant.project.name}.properties"/>
+ <property name="ant.svn.root"
+ location="../.."
+ description="Root directory of Ants SVN tree"/>
+
+
<property name="src.root"
- location="../../src/main"
+ location="${ant.svn.root}/src/main"
description="Ants Java sources"/>
<property name="docs.src"
- location="../../xdocs"
+ location="${ant.svn.root}/xdocs"
description="XDocs Documentation in Ants source tree"/>
<property name="xdocs.dir"
location="xdocs"
description="Target dir for generation"/>
<property name="ant.docs"
- location="${docs.src}/../docs"
+ location="${ant.svn.root}/docs"
description="Directory of Ants manual"/>
+
+ <fail message="$${ant.svn.root} must point to the root directory of Ants SVN
codebase. Current: ${ant.svn.root}">
+ <condition><not><available
file="${ant.svn.root}/src/script/runant.pl"/></not></condition>
+ </fail>
+ <fail message="$${src.root} must point to the root directory of Ants
codebase. Current: ${src.root}">
+ <condition><not><available
file="${src.root}/org/apache/tools/ant/Project.java"/></not></condition>
+ </fail>
+ <fail message="$${docs.src} must point to the xdocs directory of Ants
codebase. Current: ${docs.src}">
+ <condition><not><available
file="${docs.src}/external.xml"/></not></condition>
+ </fail>
+ <fail message="$${ant.docs} must point to the 'docs' directory (which
contains the manual) in Ants codebase. Current: ${ant.docs}">
+ <condition><not><available
file="${ant.docs}/manual/projecthelper.html"/></not></condition>
+ </fail>
+
+
<property name="build.dir" location="build"/>
<property name="antdoclet.src.dir" location="src"/>
<property name="gen.dir" location="${build.dir}/gen"/>