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

Definitely XMLBuddy. ;-} Right-click the file name in the explorer/navigator and select Open With > Ant Editor. It's the one with the ant icon.

Bob Foster
http://xmlbuddy.com/

Darin Swanson wrote:

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