ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pandian.Anbunat...@in.efunds.com
Subject RE: problem while using <taskdef>
Date Wed, 18 Jul 2001 04:23:22 GMT


ok Boss. Then if I want to build the Apache XML Parser what can I do.
I can't delete the org.apache.tools.ant package from ANT project and add it
to Apache XML Parser project.
VAJLoadroject is in org.apache.tools.ant.taskdefs.optional.ide and this
package is in ANT project.
how can I add this in <taskdef> when I want to make a build for Apache XML
Parser project.
(Embedded image moved to file: pic13966.gif)


                                                                                         
 
                    "Ed Hansen"                                                          
 
                    <EdHa@VSP.com        To:     "'ant-user@jakarta.apache.org'"      
    
                    >                    <ant-user@jakarta.apache.org>          
          
                                         cc:                                             
 
                    07/18/01             Subject:     RE: problem while using <taskdef>
   
                    01:52 AM                                                             
 
                    Please                                                               
 
                    respond to                                                           
 
                    ant-user                                                             
 
                                                                                         
 
                                                                                         
 






The problem is in VAJ and your Repository.  A package can only exist in one
project at a time in your workspace.  Apparently both your Apache XML
Parser Xerces project and your ANT project contain the package
org.apache.tools.ant.  You already have the Apache XML Parser Xerces
project loaded into your workspace, so when the API Tools Servlet tries to
import the ANT project into your workspace, VAJ complains about the
conflict.  You would see the same error if you went directly to the
workspace or repository explorer and tried to load the ANT project.

If you first removed the Apache XML Parser Xerces project from your
workspace (or removed the offending package from one of the two projects),
the problem would go away.

-----Original Message-----
From: Pandian.Anbunathan@in.efunds.com
[mailto:Pandian.Anbunathan@in.efunds.com]
Sent: Tuesday, July 17, 2001 6:31 AM
To: ant-user@jakarta.apache.org
Subject: problem while using <taskdef>


Hi all,

In my xml file I have <taskdef> like this....


     <taskdef name="vajload" classname
="org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects"/>

     <!--load project to workspace-->
     <target name="load" description="loadproject">
          <vajload>
               <!--vajproject name="Apache XML Parser Xerces" version
="1.2"/-->
               <vajproject name="ANT" version="2.1"/>
          </vajload>
     </target>

here when I try to build the target 'load' it is woking fine and BUILD
SUCCESSFUL.
But when I remove the comments in the first vajproject tag and comment the
second one ie., trying to
build with Apache XML Parser Xerces 1.2 project Iam getting error like:

load:

[vajload] Loading 1 project(s) into workspace

BUILD FAILED

E:\xerces.xml:25: Project Apache XML Parser Xerces could not be loaded.
Add failed: The package org.apache.tools.ant cannot be specified by both
ANT and Apache XML Parser Xerces.

Total time: 1 second

what is the solution.

(Embedded image moved to file: pic15006.gif)



Mime
View raw message