[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Eclipse unable to import Ant build.xml
|
Thanks for reporting back.
The import buildfile is a weak part of our implementation and is actively
being working on in 3.1 with an accompanying Export to buildfile
functionality.
You have found another bug...I would have thought this was fixed with
https://bugs.eclipse.org/bugs/show_bug.cgi?id=74372
I will investigate with your buildfile today and find the problem.
I appreciate your help in making this part of Eclipse more enhanced.
For debugging Eclipse you can set up to self host Eclipse. For Ant specific
instructions:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ant-home/contributing.html
Darins
"James Cowan" <jamescowan@xxxxxxxxx> wrote in message
news:cko46k$g8l$1@xxxxxxxxxxxxxx
>
> thanks. that works. Is there an eclipse debugging environment for working
> out what it interprets ant build files?
>
> On the command line I use a nested ant file structure - each package has
> its own build.xml and it imports in common properties using the ant import
> statement e.g. <import file="../antproperties.xml"/>.
>
> eclipse does load the build file but I get the following error message:
>
> Required library cannot denote external folder:
> 'E:\SRC\db\src\com\dbconvertibles\environment' for project environment
>
> In the project explorer, it creates a project called "environment" but one
> nested level down it create a sub tree environment which contains the
> default package.
>
> here is the build file:
>
> <!-- ********************************************************************
> -->
> <!-- project start -->
>
> <project name="environment" default="compile" basedir=".">
>
> <!--
> ******************************************************************** -->
> <!-- import global properties -->
>
> <import file="../antproperties.xml"/>
>
> <!--
> ******************************************************************** -->
> <!-- compile target -->
>
> <target name="compile">
> <javac classpath="${gl_classpath}" srcdir="." destdir="${gl_src_dir}"
> includes="*.java"/>
> </target>
>
> <!--
> ******************************************************************** -->
> <!-- clean target -->
>
> <target name="clean">
> <delete>
> <fileset dir="." includes="*.class"/>
> </delete>
> </target>
>
> </project>
>
> <!--
> ******************************************************************** -->
> <!-- project ends -->
> <!--
> ******************************************************************** -->
>
> here is the imported file:
>
>
> <!-- ********************************************************************
> -->
> <!-- project start -->
>
> <project name="properties" default="compile" basedir=".">
>
> <!-- ********************************************************************
> -->
> <!-- global properties -->
>
> <property name="build.compiler" value="jikes"/>
> <property name="gl_castor_package" value="generated"/>
> <property name="gl_home_dir" value="e:/src/db/src"/>
> <property name="gl_src_dir" value="e:/src/db/src/com/dbconvertibles"/>
> <property name="gl_castor_dir"
> value="${gl_home_dir}/${gl_castor_package}"/>
>
> <!-- ********************************************************************
> -->
> <!-- class path -->
>
> <property name="l_libs" value="g:/java"/>
> <property name="l_xml_libs" value="g:/java/xml"/>
>
> <property name="l_antlr" value="${l_libs}/antlr-2.7.3/antlr.jar"/>
> <property name="l_castor"
> value="${l_xml_libs}/castor-0.9.5/dist/castor-0.9.5.jar"/>
> <property name="l_hibernate_dir" value="${l_libs}/hibernate-2.1"/>
> <property name="l_hibernate" value="${l_hibernate_dir}/hibernate2.jar"/>
> <property name="l_jaxen_dir" value="${l_xml_libs}/jaxen-1.0-RC-1"/>
> <property name="l_jaxen"
> value="${l_jaxen_dir}/jaxenfull.jar:${l_jaxen_dir}/lib/saxpath.jar"/>
> <property name="l_jdom" value="${l_xml_libs}/jdom-b8/build/jdom.jar"/>
> <property
> name="l_jms" value="${l_libs}/jms/openjms-.7.4/lib/jms_1.0.2a.jar"/>
> <property name="l_mail"
> value="${l_libs}/javamail-1.2/mail.jar:${l_libs}/jaf-1.0.1/activation.jar"/>
> <property name="l_openjms"
> value="${l_libs}/jms/openjms-0.7.4/lib/openjms-0.7.4.jar"/>
> <property name="l_risk_server"
> value="e:/src/db/RiskServer/jars/RiskServer.jar"/>
> <property name="l_soap" value="${l_xml_libs}/soap-2_2/lib/soap.jar"/>
> <property name="l_sybase" value="${l_libs}/jdbc/sybase/jconn2.jar"/>
> <property name="l_tibrvj" value="g:/tibco/tibrv/lib/tibrvj.jar"/>
> <property name="l_tomcat"
> value="${l_libs}/jakarta-tomcat-4.1.27/common/lib/servlet.jar"/>
> <property name="l_xerces" value="${l_xml_libs}/xerces-1_4_2/xerces.jar"/>
> <property name="l_xt" value="${l_xml_libs}/xt/xt.jar"/>
> <property name="l_xp" value="${l_xml_libs}/xp/xp.jar"/>
>
> <property name="gl_classpath"
> value=".:${gl_home_dir}:${l_antlr}:${l_castor}:${l_hibernate}:${l_jaxen}:${l_jdom}:${l_jms}:${l_mail}:${l_openjms}:${l_risk_server}:${l_soap}:${l_sybase}:${l_tibrvj}:${l_tomcat}:${l_xerces}:${l_xp}:${l_xt}"/>
>
> <!-- ********************************************************************
> -->
>
> </project>
>
>
>
>
> Darin Swanson wrote:
>
>> The problem turns out that we are always expected a destdir to be set.
>> setting destdir to "." worksaround the problem
>
>> HTH
>> Darins
>
>> "Darin Swanson" <Darin_Swanson@xxxxxxxxxx> wrote in message
>> news:ckmid4$6il$1@xxxxxxxxxxxxxx
>> > I can reproduce the problem.
>> >
>> > Logged
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=76293
>> >
>> > It is not the same problem as
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=74102
>> >
>> > I will hopefully find a workaround. The likely problem is dealing with
>> > srcdir="."
>> >
>> > Thanks
>> > Darins
>> >
>> > "Darin Swanson" <Darin_Swanson@xxxxxxxxxx> wrote in message
>> > news:ckmfkc$cc$1@xxxxxxxxxxxxxx
>> > > I will test with your example and report back shortly.
>> > >
>> > > Darins
>> > >
>> > > "James Cowan" <jamescowan@xxxxxxxxx> wrote in message
>> > > news:ckmcti$qhi$1@xxxxxxxxxxxxxx
>> > > >
>> > > > I have the same problem as this.
>> > > >
>> > > > Which version of eclipse should I download. I tried
>> > > > eclipse-SDK-3.1M2-win32.zip
>> > > > and eclipse-SDK-I20041013-win32.zip but it does seem to have the
>> > > > fix.
>> > > >
>> > > > the build.xml that I am try to import is below. In the import
>> > > > wizard,
>> it
>> > > > creates the project called "utils" in the package explorer but the
>> > > > "finish" button is left there and nothing happens. If I click
>> > > > cancel,
>> > > > nothing is imported.
>> > > >
>> > > > James
>> > > >
>> > > > build.xml
>> > > >
>> > > >
>> > > > <!--
>> > > >
>> ******************************************************************** -->
>> > > > <!-- project start -->
>> > > >
>> > > > <project name="utils" default="compile" basedir=".">
>> > > >
>> > > > <!--
>> > > >
>> ******************************************************************** -->
>> > > > <!-- compile target -->
>> > > >
>> > > > <target name="compile">
>> > > > <javac srcdir="." includes="*.java"/>
>> > > > </target>
>> > > >
>> > > > <!--
>> > > >
>> ******************************************************************** -->
>> > > > <!-- clean target -->
>> > > >
>> > > > <target name="clean">
>> > > > <delete>
>> > > > <fileset dir="." includes="*.class"/>
>> > > > </delete>
>> > > > </target>
>> > > >
>> > > > </project>
>> > > >
>> > > > <!-- project ends -->
>> > > > <!--
>> > > >
>> ******************************************************************** -->
>> > > >
>> > > >
>> > > >
>> > > > From: "Darin Swanson" <Darin_Swanson@xxxxxxxxxx>
>> > > > Date: Thu, 16 Sep 2004 13:21:57 -0700
>> > > > Newsgroups: eclipse.platform
>> > > > Organization: EclipseCorner
>> > > >
>> > >
>> >
>> > --------------------------------------------------------------------------
>> > > ------
>> > > >
>> > > > Found and fixed with Torben's generous help:
>> > > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=74102
>> > > >
>> > > > Darins
>> > > >
>> > > > "Darin Swanson" <Darin_Swanson@xxxxxxxxxx> wrote in message
>> > > > ciacoc$e3r$1@xxxxxxxxxxx">news:ciacoc$e3r$1@xxxxxxxxxxxxxx
>> > > > > We will have to set up a time when I could step you through self
>> > hosting
>> > > > so
>> > > > > we can nail this problem.
>> > > > > Darins
>> > > > >
>> > > > > "Torben Sorensen" <torbens@xxxxxxxxxxxxxxxx> wrote in message
>> > > > > ciac92$dct$1@xxxxxxxxxxx">news:ciac92$dct$1@xxxxxxxxxxxxxx
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>
>