Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 24378 invoked by uid 500); 7 Jun 2001 20:37:08 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 23906 invoked from network); 7 Jun 2001 20:34:53 -0000 Message-ID: <7FA5870AACE7D211AF37000629B37F7902AB11FD@SH24X692> From: "Shaikh, Mehmood" To: "'ant-user@jakarta.apache.org'" Subject: RE: Visual Age for Java integration with Ant. Date: Thu, 7 Jun 2001 16:34:43 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0EF91.48BBD6A0" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0EF91.48BBD6A0 Content-Type: text/plain; charset="iso-8859-1" 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. -----Original Message----- From: Deo, Suchitra [mailto:Suchitra.Deo@marriott.com] Sent: June 7, 2001 4:17 PM To: 'ant-user@jakarta.apache.org' 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: Thanks, Suchitra. -----Original Message----- From: Shaikh, Mehmood [mailto:Mehmood.Shaikh@ccra-adrc.gc.ca] Sent: Thursday, June 07, 2001 4:06 PM To: 'ant-user@jakarta.apache.org' Subject: RE: Visual Age for Java integration with Ant. Can you describe what do you intend to do? -----Original Message----- From: Deo, Suchitra [mailto:Suchitra.Deo@marriott.com] Sent: June 7, 2001 3:14 PM To: 'ant-user@jakarta.apache.org' 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 ------_=_NextPart_001_01C0EF91.48BBD6A0 Content-Type: text/html; charset="iso-8859-1" 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:Suchitra.Deo@marriott.com]
Sent: June 7, 2001 4:17 PM
To: 'ant-user@jakarta.apache.org'
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:Mehmood.Shaikh@ccra-adrc.gc.ca]
Sent: Thursday, June 07, 2001 4:06 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Visual Age for Java integration with Ant.

Can you describe what do you intend to do?
-----Original Message-----
From: Deo, Suchitra [mailto:Suchitra.Deo@marriott.com]
Sent: June 7, 2001 3:14 PM
To: 'ant-user@jakarta.apache.org'
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

 
------_=_NextPart_001_01C0EF91.48BBD6A0--