You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nitin_Baraskar <Ni...@Satyam.com> on 2002/06/12 11:23:26 UTC

Problem on Integration of ANT with VAJ

Dear ALL

I tried to integrate ant1.4.1  with visual age for java 3.5.3. When I tried
to load an ant build file though VAJ , i am getting this error
  
 "Can't load default task list"

Content of build file is as follows:


<?xml version="1.0"?>
<!-- =======================================================================
-->
<!-- Builds a binary distribution of the VAJ Ant Plugin
-->
<!-- =======================================================================
-->
<project name="anttool" default="buildall" basedir="d:\Test">

  <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="d:\TestMail"/>

  <!-- VAJ install dir -->
  <property name="vaj.dir" value="D:\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="Test" version="1.3"/>
    </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\crimson.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>

can any one help me out in solving above error

Thanks

Nitin




Nitin N. Baraskar
Senior Software Engineer
Satyam Computer Services Ltd.
271-A, Mann Sarovar,Teynampet,
Anna Salai,Chennai-600 018
Phone NO : 4353221 Extn. : 3703

************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem on Integration of ANT with VAJ

Posted by Diane Holt <ho...@yahoo.com>.
--- Nitin_Baraskar <Ni...@Satyam.com> wrote:
> I tried to integrate ant1.4.1  with visual age for java 3.5.3. When I
> tried to load an ant build file though VAJ , i am getting this error
>   
>  "Can't load default task list"

http://marc.theaimsgroup.com/?l=ant-user&w=2&r=1&s=load+default+task+list&q=b

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>