• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Where to run the saved ant script of Deployable plug-ins and fragments

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We save an ant script file while exporting plugin projects using
"Deployable plugins and fragments" option.

For ex: The plugin is saved in F:\NewFolder\plugins
and the ant script is saved as export.xml in F:\NewFolder\export.xml

Next time from where and how should I run the export.xml to export.

Looking for an clear solution as I'm new to ANT.
Please help me at the earliest

Chandru

[ December 18, 2006: Message edited by: Chandru ]
[ December 18, 2006: Message edited by: Chandru ]
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chandru:
Very urgent query!



Please read this to find out why putting that in your post is a bad idea.

And...
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Chandru",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Chandru Elango
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the mistakes.

Hope I have satisfied the rules of the forum now....

Thanks Guys....
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm guessing you create your build file from an IDE? I'd imagine you can run it from where it is exported to. You can check this by looking at the Ant file. Anything that is not a standard task will need to be defined by a taskdef element which will include the classpath to the classes needed to run it. Have a look at these, see where your build file expects these dependencies to be.
 
Chandru Elango
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply...

Yes,the build file is created from the eclipse IDE...

Also I'm running from the exported location using the below script
java -Xms512m -Xmx1224m -jar %ECLIPSE_HOME%\startup.jar -application
org.eclipse.ant.core.antRunner -buildfile export.xml
where export.xml is the file that was generated from the eclipse IDE..

The command line output says Build Successfull. But no jar is created..

Kind Regards,
Chandru Elango
[ December 19, 2006: Message edited by: Chandru Elango ]
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You seem to be running Eclipse just to run Ant. I'm not that up on using Eclipse to generate Ant files, but once it has been exported can't you just run Ant with the file? Perhaps I'm missing something, but why bother exporting a build if you still have to use Eclipse to run it?
 
Chandru Elango
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My requirement is to export the plugin project in eclipse using ant...

First time I generate the xml with the option "Save as Ant Script" in Eclipse export ...

The ant script is:
<?xml version="1.0" encoding="UTF-8"?>
<project default="plugin_export" name="export">
<target name="plugin_export">
<pde.exportPlugins destination="F:/NewFolder" exportSource="true" exportType="directory" plugins="pluginprojectA" useJARFormat="true"/>
</target>
</project>

Next time onwards without using eclipse,I need to export the same plugin project using the saved ant script file..

But on running the script file I'm not getting the exported jarfile...

Hope I'm now clear to you...
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Next time onwards without using eclipse,I need to export the same plugin project using the saved ant script file..


Your command line suggests you are still using eclipse:

or at least its Ant fuctionality. I'm guessing you need to do this to use the pde task?

That aside, try running with the -verbose flag on. If it works like normal Ant, you should see all the steps Ant goes through and hopefully you can wqork out what your jar file is not being created from that.
 
Chandru Elango
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. to use the pde.exportPlugins task we are using the eclipse ant runner..

I tried with the option -verbose and the following is the output....
F:\NewFolder>java -Xms512m -Xmx1224m -jar D:\eclipse-3.2.1\Eclipse\eclipse\startup.jar -application org.eclip
se.ant.core.antRunner -buildfile "export.xml" -verbose
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: export.xml
parsing buildfile F:\NewFolder\export.xml with URI = file:///F:/NewFolder/export.xml
Project base dir set to: F:\NewFolder
Build sequence for target(s) `plugin_export' is [plugin_export]
Complete build sequence is [plugin_export, ]

plugin_export:
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 18 seconds

where am I wrong???
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm. Hard to say. The verbose output suggests the target did not run because it had nothing to do. You could go the next step and try the -debug option. This will give you even more output to try to get to the bottom of why Ant is doing what it is doing.
 
Chandru Elango
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We already tried it and it didn't help us....

Here is the output with the debug option:
F:\NewFolder>java -Xms512m -Xmx1224m -jar D:\eclipse-3.2.1\Eclipse\eclipse\startup.jar -application org.eclip
se.ant.core.antRunner -buildfile "export.xml" -option
Unknown argument: -option
Buildfile: export.xml

plugin_export:

F:\NewFolder>java -Xms512m -Xmx1224m -jar D:\eclipse-3.2.1\Eclipse\eclipse\startup.jar -application org.eclip
se.ant.core.antRunner -buildfile "export.xml" -debug
Install location:
file:/d:/eclipse-3.2.1/Eclipse/eclipse/
Configuration file:
file:/d:/eclipse-3.2.1/Eclipse/eclipse/configuration/config.ini loaded
Configuration location:
file:/d:/eclipse-3.2.1/Eclipse/eclipse/configuration/
Framework located:
file:/d:/eclipse-3.2.1/Eclipse/eclipse/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar
Framework classpath:
file:/d:/eclipse-3.2.1/Eclipse/eclipse/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar
Debug options:
file:/F:/NewFolder/.options not found
Time to load bundles: 15
Starting application: 1140
Apache Ant version 1.6.5 compiled on June 2 2005
Setting ro project property: ant.file -> export.xml
Buildfile: export.xml
+Datatype eclipse.convertPath org.eclipse.core.resources.ant.ConvertPath
+Datatype eclipse.incrementalBuild org.eclipse.core.resources.ant.IncrementalBuild
+Datatype eclipse.refreshLocal org.eclipse.core.resources.ant.RefreshLocalTask
+Datatype emf.JETEmitter org.eclipse.emf.ant.taskdefs.codegen.JETEmitterTask
+Datatype emf.JMerger org.eclipse.emf.ant.taskdefs.codegen.JMergerTask
+Datatype emf.util.RemoveVersion org.eclipse.emf.ant.taskdefs.RemoveVersionTask
+Datatype emf.Ecore2Java org.eclipse.emf.importer.ecore.taskdefs.EcoreGeneratorTask
+Datatype emf.Rose2Java org.eclipse.emf.importer.rose.taskdefs.RoseGeneratorTask
+Datatype help.buildHelpIndex org.eclipse.help.internal.base.ant.BuildHelpIndex
+Datatype eclipse.checkDebugAttributes org.eclipse.jdt.core.CheckDebugAttributes
+Datatype eclipse.brand org.eclipse.pde.internal.build.tasks.BrandTask
+Datatype eclipse.fetch org.eclipse.pde.internal.build.tasks.FetchTask
+Datatype eclipse.buildScript org.eclipse.pde.internal.build.tasks.BuildScriptGeneratorTask
+Datatype eclipse.generateFeature org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask
+Datatype eclipse.buildManifest org.eclipse.pde.internal.build.tasks.BuildManifestTask
+Datatype eclipse.assembler org.eclipse.pde.internal.build.tasks.PackagerTask
+Datatype eclipse.idReplacer org.eclipse.pde.internal.build.tasks.IdReplaceTask
+Datatype eclipse.jnlpGenerator org.eclipse.pde.internal.build.tasks.JNLPGeneratorTask
+Datatype eclipse.unzipperBuilder org.eclipse.pde.internal.build.tasks.UnzipperGeneratorTask
+Datatype eclipse.fetchFilesGenerator org.eclipse.pde.internal.build.tasks.FetchFileGeneratorTask
+Datatype eclipse.versionReplacer org.eclipse.pde.internal.build.tasks.GenericVersionReplacer
+Datatype pde.convertSchemaToHTML org.eclipse.pde.internal.core.ant.ConvertSchemaToHTML
+Datatype pde.exportPlugins org.eclipse.pde.internal.core.ant.PluginExportTask
+Datatype pde.exportFeatures org.eclipse.pde.internal.core.ant.FeatureExportTask
+Datatype wsgen ws.ant.task.WebServiceGenerationAntTask
+Datatype emf.XSD2Java org.eclipse.xsd.ecore.importer.taskdefs.XSDGeneratorTask
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile F:\NewFolder\export.xml with URI = file:///F:/NewFolder/export.xml
Setting ro project property: ant.project.name -> export
Adding reference: export
Setting ro project property: ant.file.export -> F:\NewFolder\export.xml
Project base dir set to: F:\NewFolder
+Target:
+Target: plugin_export
Adding reference: eclipse.ant.targetVector
Build sequence for target(s) `plugin_export' is [plugin_export]
Complete build sequence is [plugin_export, ]

plugin_export:
BUILD SUCCESSFUL

BUILD SUCCESSFUL
Total time: 20 seconds
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I don't think its Ant that is the problem. Ant seems to be executing everything correctly - no problems or odd behaviour reported in the debug anyway. So my guess is the pde task is doing something unexpected. Unfortunately, since its not part of Ant, I can't really help more.
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic