call java class which has a method from ANT build file [message #1730148] |
Thu, 21 April 2016 14:26  |
Eclipse User |
|
|
|
Hello,
I am trying to call java class which has a method from ANT build file
I have tried many ways but all of them failed .
The following is my ANT file : the bold (Java part )is what I need to do
<?xml version="1.0"?>
<project default="main" >
<target name="loadModels">
<epsilon.emf.loadModel
name="UML"
modelFile="Models/CompletedModelNov24Ph1Ph2ActivityGraph.uml"
metamodelUri="http://www.eclipse.org/uml2/5.0.0/UML"
read="true" store="true"/>
<epsilon.emf.register file="../AntBuildfile/Metamodels/lqnmodel.ecore"/>
<epsilon.emf.loadModel name="lqnmodel"
modelFile="Models/target2lqn.model"
metamodelUri="lqnmodel"
read="false" store="true"/>
</target>
<target name="main" depends="loadModels">
<epsilon.eol src="../AntBuildfile/ScriptingUMLXML.eol">
<model ref="UML" />
</epsilon.eol>
<epsilon.etl src="../AntBuildfile/AntwithoutTraceabilityApril11.etl" >
<model ref="UML"/>
<model ref="lqnmodel" />
</epsilon.etl>
<java>
<!--call java class which has a method to change the tag names and send the file location as a parameter to that method -->
</java>
</target>
</project>
I found this reference http://ant.apache.org/manual/develop.html#set-magic
but it confused me ,for example my class doesn't extend org.apache.tools.ant.Task do I need to include that ??if so where can I find class task in order to be able to extend it. Also do I need to identify the class path and class name?? and if yes how can I identify them because each time I got an error that my class is not found.
Can you please help me.
Thanks Taghreed.
[Updated on: Thu, 21 April 2016 14:29] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.14015 seconds