Title: Chicken and Egg question
I didnt use the build file you're using, but i can see one defect in this build file
In VAJLOAD task, use vajproject instead of project.
e.g.
    <vajload>
      <vajproject name="Ant" version="1.3"/>
      <vajproject name="Apache Oro RegExp" version="2.0.1"/>
    </vajload>

-----Original Message-----
From: Deo, Suchitra [mailto:[EMAIL PROTECTED]]
Sent: June 7, 2001 4:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Visual Age for Java integration with Ant.

I wish to do the build in Visual age for Java. So I followed the instructions from the integration doc that is on the apache site. I was able to install Ant on Visual Age. Now I need to build a project. So I open the tool-integration gui (this I believe is the antidote tool) where I need to enter the path for build.xml. I copied this xml file from the example from the doc and just changed the path. When  I click on re-load it says that it cannot load the default task list'.
 
This is the xml file that I have:
 
<?xml version="1.0"?>
<!-- ======================================================================= -->
<!-- Builds a binary distribution of the VAJ Ant Plugin                      -->
<!-- ======================================================================= -->
<project name="anttool" default="buildall" basedir="C:\ANT\jakarta-ant-1.3-src\jakarta-ant-1.3">
 
  <property name="src.dir" value="${basedir}/src"/>
  <property name="zip.dir" value="${basedir}/dist"/>
  <property name="build.classes" value="${basedir}/classes"/>
 
  <!-- location of the unzipped Ant source distribution  -->
  <property name="antdistribution.dir" value="C:\ANT\jakarta-ant-1.3-src\jakarta-ant-1.3"/>
 
  <!-- VAJ install dir -->
  <property name="vaj.dir" value="C:\Program Files\IBM\VisualAge for Java"/>
 
  <path id="classpath">
      <pathelement location="${src.dir}"/>
      <pathelement location="${vaj.dir}\IDE\project_resources\IBM IDE Utility class libraries" />
      <pathelement location="${build.classes}"/>
  </path>
 

  <!-- =================================================================== -->
  <!-- Load Projects into Workspace                                        -->
  <!-- =================================================================== -->
  <target name="load" description="load projects">
    <vajload>
      <project name="Ant" version="1.3"/>
      <project name="Apache Oro RegExp" version="2.0.1"/>
    </vajload>
  </target>
 

  <!-- =================================================================== -->
  <!-- Creates the build dirs                                              -->
  <!-- =================================================================== -->
  <target name="preparedirs">
    <mkdir dir="${basedir}"/>
    <mkdir dir="${src.dir}"/>
    <mkdir dir="${zip.dir}"/>
    <mkdir dir="${build.classes}"/>
  </target>
 

  <!-- =================================================================== -->
  <!-- Export from VA                                                      -->
  <!-- =================================================================== -->
  <target name="export" depends="preparedirs" description="export projects">
    <mkdir dir="${src.dir}"/>
    <!-- Export all Ant sources except optional tasks and the Oro sources -->
    <vajexport destdir="${src.dir}">
      <include name="Ant/**"/>
      <exclude name="Ant/**/optional/**"/>
      <exclude name="Ant/org/apache/tools/ant/gui/**"/>
      <include name="Apache Oro*/**"/>
    </vajexport>
    <!-- Export selected optional tasks -->
    <vajexport destdir="${src.dir}">
      <include name="Ant/org/apache/tools/ant/taskdefs/optional/ide/**"/>
    </vajexport>
  </target>
 
  <!-- =================================================================== -->
  <!-- Unzip necessary libraries                                           -->
  <!-- =================================================================== -->
  <target name="expand">
    <mkdir dir="${build.classes}"/>
    <unzip src="${antdistribution.dir}\lib\parser.jar"
           dest="${build.classes}"
    />
    <unzip src="${antdistribution.dir}\lib\jaxp.jar"
           dest="${build.classes}"
    />
    <delete dir="${build.classes}\META-INF" />
  </target>
 
  <!-- =================================================================== -->
  <!-- Compile the source code                                            -->
  <!-- =================================================================== -->
  <target name="compile" depends="expand" description="compile java sources">
    <mkdir dir="${build.classes}"/>
    <javac srcdir="${src.dir}"
           destdir="${build.classes}"
           debug="on"
           deprecation="off"
           optimize="on" >
      <classpath refid="classpath" />
      <include name="org/apache/**"/>
      <exclude name="**/JakartaRegexpMatcher.java"/>
    </javac>
  </target>
 
  <!-- =================================================================== -->
  <!-- Copy resources and zip everything together                           -->
  <!-- =================================================================== -->
  <target name="zip" depends="compile" description="creates zip distribution">
    <copy todir="${build.classes}">
      <fileset dir="${src.dir}">
          <include name="org/apache/**"/>
          <exclude name="**/*.java"/>
      </fileset>
    </copy>
    <mkdir dir="${build.classes}/doc"/>
    <copy todir="${build.classes}/doc" overwrite="yes">
      <fileset dir="${antdistribution.dir}/docs">
          <include name="VAJAnttool.html, toolmenu.gif, anttool1.gif"/>
      </fileset>
    </copy>
    <copy file="${antdistribution.dir}/src/main/org/apache/tools/ant/taskdefs/optional/ide/default.ini" todir="${build.classes}" overwrite="yes"/>
    <mkdir dir="${zip.dir}"/>
    <zip basedir="${build.classes}" zipfile="${zip.dir}/anttool.zip" />
  </target>
 
  <!-- =================================================================== -->
  <!-- Cleans source and class dirs                                        -->
  <!-- =================================================================== -->
  <target name="clean" depends="preparedirs" description="removes all files from src and build tree">
    <delete>
      <fileset dir="${src.dir}"/>
    </delete>
    <delete>
      <fileset dir="${build.classes}"/>
    </delete>
    <delete>
      <fileset dir="${zip.dir}"/>
    </delete>
  </target>
 
  <!-- =================================================================== -->
  <!-- Cleans the build dir, loads required project versions, exports,     -->
  <!-- compiles and zips the Plugin                                        -->
  <!-- =================================================================== -->
  <target name="buildall" depends="clean, load, export, zip" description="build all">
  </target>
</project>
 
Thanks,
 
Suchitra.
-----Original Message-----
From: Shaikh, Mehmood [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 4:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Visual Age for Java integration with Ant.

Can you describe what do you intend to do?
-----Original Message-----
From: Deo, Suchitra [mailto:[EMAIL PROTECTED]]
Sent: June 7, 2001 3:14 PM
To: '[EMAIL PROTECTED]'
Subject: Visual Age for Java integration with Ant.

I have successfully installed Ant in VAJ. I copied the example build.xml file from the VAJ integration doc and just changed the Ant path and the VAJ path in it. But when I start the Antidote Integration tool , enter this build file path and click re-load, I get the message, 'Can't load default task list'.

Please let me know what else I need to do.

Thanks,

Suchitra

 

Reply via email to