DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31609

Ant doesn't support the "inheritall" attribute

           Summary: Ant doesn't support the "inheritall" attribute
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build Process
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Greetings,

I'm having problem to build my java sources by execution the "build.bat" that 
point to "build.xml".


Output
======
D:\clients\Portal>build.bat
Searching for build.xml ...
Buildfile: D:\clients\Portal\build.xml

prepareCommon:

BUILD FAILED

D:\clients\Portal\build.xml:61: Class org.apache.tools.ant.taskdefs.Ant doesn't 
support the "inheritall" attribute

Total time: 0 seconds


Please help, thanks.



build.bat
=========
@echo off
rem build.bat -- Build Script for the "Hello, World" Application
rem $Id: build.bat,v 1.4 2001/12/05 01:51:51 markh Exp $

set TOMCAT_HOME=d:\tomcat
set JAVA_HOME="D:\Program Files\Java\j2re"
set _CP=%CP%

rem Identify the custom class path components we need
set CP=%TOMCAT_HOME%\lib\ant.jar;%TOMCAT_HOME%\lib\servlet.jar
set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar
set CP=%CP%;%JAVA_HOME%\lib\tools.jar

rem Execute ANT to perform the requird build target
java -classpath %CP%;%CLASSPATH% org.apache.tools.ant.Main -Dtomcat.home=%
TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7 %8 %9

set CP=%_CP%
set _CP=


build.xml
=========
<project name="VCH Portal" default="local" basedir=".">

  <property name="app.name"       value="vch"/>
  <property name="deploy.home"    value="deploy"/>
  <property name="dist.home"      value="war"/>
  <property name="dist.war"       value="${app.name}.war"/>
  <property name="ipoh.src"       value="../../clients/ipoh/src"/>
  <property name="bl.src"         
value="../../clients/ipoh/BusinessLicense/src"/>
  <property name="propdev.src"    value="../../clients/ipoh/propertydev/src"/>
  <property name="ipohshared.src" value="../../clients/ipoh/shared/src"/>
  <property name="faxserver.src"  value="../../clients/ipoh/FaxServer/src"/>
  <property name="buildingplans.src" 
value="../../clients/ipoh/buildingPlans/src"/>
  <property name="complaints.src" value="../../clients/ipoh/Complaints/src"/>
  <property name="appadmin.src"   value="../../clients/ipoh/AppAdmin/src"/>
  <property name="rentalinfoline.src"   
value="../../clients/ipoh/RentalInfoLine/src"/>
  <property name="propertyinfoline.src" 
value="../../clients/ipoh/PropertyInfoLine/src"/>
  <property name="propsearch.src" value="../../clients/ipoh/Property 
Search/src"/>
  <property name="payinq.src"     
value="../../clients/ipoh/PaymentInquiry/src"/>
  <property name="facbook.src"    
value="../../clients/ipoh/FacilityBooking/src"/>
  <property name="build.compiler" value="jikes"/>
  <property name="build.compiler.emacs" value="yes"/>
  <property name="classpath"      value="${deploy.home}/WEB-INF/classes"/>
  <property file="build.properties"/>
  <property file="version.properties"/>

  <path id="path1">
    <pathelement path="${classpath}"/>
    <fileset dir="${deploy.home}/WEB-INF/lib">
      <include name="**/*.jar"/>
    </fileset>
    <fileset dir="../../common/lib/java">
      <include name="**/*.jar"/>
    </fileset>
  </path>

  <target name="prepare">
    <antcall target="prepareCommon"/>
    <mkdir dir="${deploy.home}/web"/>
    <copy todir="${deploy.home}/web">
      <fileset dir="web"
        excludes="**/_*/**,dependency*/**,forms/*,**ordering**"/>
    </copy>
    <mkdir dir="${deploy.home}/WEB-INF/data"/>
    <mkdir dir="${deploy.home}/WEB-INF/data/temp"/>
    <copy todir="${deploy.home}/WEB-INF/data">
      <fileset dir="data"
        
excludes="receipts/*,xml/*.xml,html/*,**/temp/**,englishpda/**,malaypda/**,**ord
ering**,**mysql**"/>
    </copy>
  </target>

  <target name="prepareCommon">
    <ant antfile="build.xml" dir="../../common/java" inheritall="false"/>
    <mkdir dir="${deploy.home}"/>
    <mkdir dir="${deploy.home}/WEB-INF"/>
    <mkdir dir="${deploy.home}/WEB-INF/classes"/>
    <mkdir dir="${deploy.home}/WEB-INF/lib"/>
    <copy todir="${deploy.home}/WEB-INF/lib/">
      <fileset dir="../../common/lib/java" includes="Phoenix.jar"/>
    </copy>
  </target>

  <target name="clean">
    <ant antfile="build.xml" dir="../../common/java" target="clean" 
inheritall="false"/>
    <delete dir="${deploy.home}/WEB-INF/classes"/>
    <delete dir="${deploy.home}/WEB-INF/lib"/>
  </target>

  <patternset id="properties">
    <include name="**/*.properties"/>
    <include name="**/*.dtd"/>
  </patternset>

  <path id="compileDirs">
    <pathelement path="${ipohshared.src}"/>
    <pathelement path="${faxserver.src}"/>
    <pathelement path="src"/>
    <pathelement path="${ipoh.src}"/>
    <pathelement path="${bl.src}"/>
    <pathelement path="${propdev.src}"/>
    <pathelement path="${buildingplans.src}"/>
    <pathelement path="${complaints.src}"/>
    <pathelement path="${appadmin.src}"/>
    <pathelement path="${propsearch.src}"/>
    <pathelement path="${propertyinfoline.src}"/>
    <pathelement path="${rentalinfoline.src}"/>
    <pathelement path="${payinq.src}"/>
    <pathelement path="${facbook.src}"/>
  </path>

  <target name="compile" depends="version">
    <echo message="java version = ${java.version}"/>
    <javac destdir="${deploy.home}/WEB-INF/classes"
           debug="on" optimize="off" deprecation="off" nowarn="on"
           
excludes="**/ivr/**,**/junit/**,**/importdata/**,**/updateamount/**,com/vcomm/ip
oh/bl/**,com/vcomm/ipoh/ImportFromHP/**">
      <src refid="compileDirs"/>
      <classpath refid="path1"/>
    </javac>
    <copy todir="${deploy.home}/WEB-INF/classes">
      <fileset dir="src"><patternset refid="properties"/></fileset>
      <fileset dir="${bl.src}"><patternset refid="properties"/></fileset>
      <fileset dir="${propdev.src}"><patternset refid="properties"/></fileset>
      <fileset dir="${buildingplans.src}"><patternset 
refid="properties"/></fileset>
      <fileset dir="${complaints.src}"><patternset 
refid="properties"/></fileset>
      <fileset dir="${propsearch.src}"><patternset 
refid="properties"/></fileset>
      <fileset dir="${propertyinfoline.src}"><patternset 
refid="properties"/></fileset>
      <fileset dir="${rentalinfoline.src}"><patternset 
refid="properties"/></fileset>
      <fileset dir="${payinq.src}"><patternset refid="properties"/></fileset>
      <fileset dir="${facbook.src}"><patternset refid="properties"/></fileset>
    </copy>
  </target>

  <target name="portal.jar">
    <jar index="yes" jarfile="${deploy.home}/WEB-INF/lib/Portal.jar"
         basedir="${deploy.home}/WEB-INF/classes"/>
  </target>

  <target name="test" depends="local">
    <junit printsummary="yes">
      <formatter type="plain"/>
      <classpath refid="path1"/>
      <test name="com.vcity.clients.ipoh.facbook.test.Test" />
    </junit>
  </target>

  <target name="javadoc" depends="prepare">
    <mkdir dir="javadoc"/>
    <javadoc sourcepathref="compileDirs"
             destdir="javadoc"
             packagenames="com.vcity.*,com.phoenixcsi.*"
             excludepackagenames="*.ivr">
      <classpath refid="path1"/>
    </javadoc>
  </target>

  <target name="vcityweb" depends="prepare,compile">
    <copy todir="${deploy.home}/WEB-INF/data" overwrite="yes">
      <fileset dir="etc/vcity"/>
    </copy>
    <copy todir="${deploy.home}/WEB-INF/data" overwrite="yes">
      <fileset dir="etc/vcity/web"/>
    </copy>
    <antcall target="buildwar">
      <param name="dir" value="vcityweb"/>
    </antcall>
  </target>

  <target name="vcitykiosk" depends="prepare,compile">
    <copy todir="${deploy.home}/WEB-INF/data" overwrite="yes">
      <fileset dir="etc/vcity"/>
      <fileset dir="etc/vcity/kiosk"/>
    </copy>
    <antcall target="buildwar">
      <param name="dir" value="vcitykiosk"/>
    </antcall>
  </target>

  <target name="version">
    <propertyfile
        file="src/com/phoenixcsi/portal/Resources.properties">
      <entry  key="version" value="${portal.version}"/>
      <entry  key="build" type="date" value="now" pattern="yyyy-MM-dd 
HH:mm:ss"/>
    </propertyfile>
    <echo message="portal version = ${portal.version}"/>
  </target>

  <target name="ipohweb" depends="clean,prepare,compile,version">
    <copy todir="${deploy.home}/WEB-INF/data" overwrite="yes">
      <fileset dir="etc/ipoh/web"/>
    </copy>
    <delete>
      <!-- remove the test logic -->
      <fileset dir="${deploy.home}/WEB-INF/classes" includes="**/test/**"/>
    </delete>
    <antcall target="portal.jar"/>
    <antcall target="buildwar">
      <param name="dir" value="ipohweb"/>
    </antcall>
  </target>

  <target name="ipohrelease" depends="ipohweb">
    <ftp server="ftp.vcitysoftware.com"
         userid="ftpguest"
         password="guest123"
         remotedir="Release"
         passive="yes">
      <fileset dir="war/ipohweb"/>
    </ftp>
  </target>

  <target name="buildwar">
    <mkdir dir="${dist.home}"/>
    <mkdir dir="${dist.home}/${dir}"/>
    <copy file="etc/web.xml" tofile="${deploy.home}/WEB-INF/web.xml"/>
    <jar jarfile="${dist.home}/${dir}/${dist.war}"
         basedir="${deploy.home}"
         excludes="WEB-INF/classes/**"/>
  </target>

  <target name="local" depends="prepareCommon,compile">
    <antcall target="portal.jar"/>
    <copy todir="${tomcat.home}/webapps/vch/WEB-INF/lib/">
      <fileset dir="${deploy.home}/WEB-INF/lib" includes="Phoenix.jar,
                                                          Portal.jar"/>
    </copy>
  </target>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to