Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3

Unless somebody changed it, the default editor for "build.xml" is the Ant editor. Please check File Associations. The more specific association should override the more general *.xml. If it doesn't (try it on a build.xml file you've never opened in an editor), that's a bug. A lot of new code went in 3.1 in this area; we need to watch out for bugs.

The other possibility is you once opened the file with XMLBuddy way back when. Eclipse never forgets. It confuses the heck out of most people.

Bob Foster
http://xmlbuddy.com/

Jeremy Hanna wrote:
Darin,
Thanks a lot.  I'm an idiot.  Yep.
I did the old "open with" to Ant Default Editor because *.xml is defaulted to XmlBuddy.
This has really driven me nuts though.  Thanks,
Jeremy

------------------------------------------------------------------------
*From:* platform-ant-dev-bounces@xxxxxxxxxxx [mailto:platform-ant-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Darin Swanson
*Sent:* Monday, June 27, 2005 4:35 PM
*To:* Eclipse Ant integration developers list.
*Subject:* RE: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3


I am not sure what editor that is...but it is not the Ant editor provide by Eclipse :-)
Looks like XmlBuddy to me based on that products screenshots on the web?

Darins



*"Jeremy Hanna" <jhanna@xxxxxxxxxxxxx>*
Sent by: platform-ant-dev-bounces@xxxxxxxxxxx

06/27/2005 02:33 PM
Please respond to
"Eclipse Ant integration developers list."


	
To
	"Eclipse Ant integration developers list." <platform-ant-dev@xxxxxxxxxxx>
cc
	
Subject
	RE: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3


	





Darin,
Here is the screenshot of what I'm referring to as '?' markers. Wasn't that explanation clear enough :p? j/k
------------------------------------------------------------------------
*From:* platform-ant-dev-bounces@xxxxxxxxxxx [mailto:platform-ant-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Darin Swanson*
Sent:* Monday, June 27, 2005 2:47 PM*
To:* Eclipse Ant integration developers list.*
Subject:* RE: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3


Jeremy,

Re: Still nothing - it continues to put ? markers next to things like junit, hbm2java, and middlegen. The Ant editor does not validate tasks at parse time. I have no problems parsing your sample buildfile (once I changed the default target :-) )

What exactly do you mean by '?' markers? Possibly a screenshot is worth a thousand words?

Now if a "taskdef" was included in your sample, then an error indication is provided if the taskdef could not successfully configured at parse time (missing JAR, class not found in the JAR etc).

Thanks
Darins



*"Jeremy Hanna" <jhanna@xxxxxxxxxxxxx>*
Sent by: platform-ant-dev-bounces@xxxxxxxxxxx

06/27/2005 01:35 PM
Please respond to
"Eclipse Ant integration developers list."

	
To
"Darin Swanson" <darinrs@xxxxxxxxxxx>, "Eclipse Ant integration developers list." <platform-ant-dev@xxxxxxxxxxx>
cc
	
Subject
	RE: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3



	






Below is an example of a small build.xml that doesn't parse correctly within eclipse rc3. I tried resetting the ANT_HOME variable in the Window->preferences->Ant->Runtime section to the location of Ant 1.6.5 on my harddrive. In the global entries, I also included all of the libraries that the project was using. Still nothing - it continues to put ? markers next to things like junit, hbm2java, and middlegen.
Thanks for the help!
<?xml version="1.0"?> <project name="Hibernatabase" basedir="." default="codegen">

<property name="source.root" value="src"/>
<property name="generated-source.root" value="generated_src"/>
<property name="class.root" value="bin"/>
<property name="lib.dir" value="lib"/>
<property name="conf.dir" value="conf"/>
<property name="dist.dir" value="dist"/>

<path id="project.class.path">
<!-- Include our classes, of course -->
<pathelement location="${class.root}"/>
<!-- Include jars in the project library directory -->
<fileset dir="${lib.dir}">
 <include name="**/*.jar"/>
</fileset>
</path>

<target name="test">
<junit printsummary="false" haltonfailure="true" fork="true">
 <formatter type="brief" usefile="false"/>
 <batchtest>
  <fileset dir="${class.root}" includes="**/*Test*.class"/>
 </batchtest>
 <classpath>
  <fileset dir="lib">
   <include name="*.jar"/>
  </fileset>
 </classpath>
 <classpath location="${class.root}"/>
</junit>
</target>

</project>

------------------------------------------------------------------------
*From:* platform-ant-dev-bounces@xxxxxxxxxxx [mailto:platform-ant-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Darin Swanson*
Sent:* Thursday, June 23, 2005 10:02 PM*
To:* platform-ant-dev@xxxxxxxxxxx*
Subject:* Re: [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3

This is not really the correct forum for these kinds of questions...but whatever... Are you adding the correct required JARs to the Ant runtime classpath? Did you add any JARs to your lib directory of Ant 1.6.3? If so have you added these same JARs in Eclipse? Can you provide a sample buildfile that exhibits the problem with detailed instructions on exactly what you did and how it is failing. HTH
Darins
In the future please ask user questions on the eclipse newsgroups
----- Original Message ----- *
From:* _Jeremy Hanna_ <mailto:jhanna@xxxxxxxxxxxxx> *
To:* _platform-ant-dev@eclipse.org_ <mailto:platform-ant-dev@xxxxxxxxxxx> *
Sent:* Thursday, June 23, 2005 4:45 PM *
Subject:* [platform-ant-dev] Ant taskdef problems with 3.1 M7 through to RC3

I am working with the stable builds of Eclipse 3.1 from M7 to RC3 and they all seem to share a similar problem with ant. We are using hibernate and a related tool middlegen. I am trying to use hbm2java, declaring it as a taskdef, then using it. Eclipse complains that the element "hbm2java" must be declared. The same thing happens with middlegen, I declare it as a taskdef and then use it, but the same error occurs. It works from the command-line, so I'm not sure I understand what is happening with the Eclipse ant script parser.

I am using ant 1.6.3 on the commandline and the standard ant that comes with eclipse 3.1 rc3.
Thanks for the help!
Jeremy

------------------------------------------------------------------------

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev


------------------------------------------------------------------------

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev




Back to the top