Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: Scripting headless export of WAR file
Re: Scripting headless export of WAR file [message #221071] Tue, 09 September 2008 09:29 Go to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

Copying this to the eclipse.webtools newsgroup where it might get more
attention.

Jacob wrote:
> Hello all,
>
> I am currently using Eclipse's built-in, automated build tools to build
> my workspace which is comprised of several interdependent projects. This
> works fine for the moment, but I'd like to migrate to a headless,
> automated build system. One solution would be to use ANT, but I would
> prefer to continue using Eclipse's build tools, and I have found some
> documentation that seems to indicated that it is possible to run Eclipse
> headless and have it build the build the workspace
> [http://help.eclipse.org/ganymede/index.jsp]. In addition to building my
> projects' class files, I need to be able to export a WAR using Eclipse's
> built-in WAR exporter, and I was wondering if it would be possible to
> script this from the command-line in a similar manner as above, by
> simply executing Eclipse and passing in command-line arguments?
>
> If not, would the WAR exporter and jdt.apt.core.aptBuild be fairly
> well-exposed to an external script running on the JVM (for example Rhino
> or Jython)? Is there any sample code that implements something similar
> to this?
> I would greatly appreciate any guidance anyone can offer. Thanks,
>
> Jacob Beard
>
Re: Scripting headless export of WAR file [message #221079 is a reply to message #221071] Tue, 09 September 2008 10:20 Go to previous messageGo to next message
Jacob is currently offline Jacob
Messages: 7
Registered: July 2009
Junior Member
Thank you, Eric.

Jacob
Re: Scripting headless export of WAR file [message #221087 is a reply to message #221071] Tue, 09 September 2008 11:56 Go to previous messageGo to next message
Eclipse User
Originally posted by: dcarver.starstandard.org

You might be interested in Ant 4 Eclipse:

http://ant4eclipse.sourceforge.net/ant-for-eclipse-home.html

It'll allow you to write Ant scripts that leverage your existing eclipse
configuration files.

Dave


Eric Rizzo wrote:
> Copying this to the eclipse.webtools newsgroup where it might get more
> attention.
>
> Jacob wrote:
>> Hello all,
>>
>> I am currently using Eclipse's built-in, automated build tools to
>> build my workspace which is comprised of several interdependent
>> projects. This works fine for the moment, but I'd like to migrate to a
>> headless, automated build system. One solution would be to use ANT,
>> but I would prefer to continue using Eclipse's build tools, and I have
>> found some documentation that seems to indicated that it is possible
>> to run Eclipse headless and have it build the build the workspace
>> [http://help.eclipse.org/ganymede/index.jsp]. In addition to building
>> my projects' class files, I need to be able to export a WAR using
>> Eclipse's built-in WAR exporter, and I was wondering if it would be
>> possible to script this from the command-line in a similar manner as
>> above, by simply executing Eclipse and passing in command-line arguments?
>>
>> If not, would the WAR exporter and jdt.apt.core.aptBuild be fairly
>> well-exposed to an external script running on the JVM (for example
>> Rhino or Jython)? Is there any sample code that implements something
>> similar to this?
>> I would greatly appreciate any guidance anyone can offer. Thanks,
>>
>> Jacob Beard
>>
Re: Scripting headless export of WAR file [message #221153 is a reply to message #221087] Tue, 09 September 2008 17:36 Go to previous messageGo to next message
Jacob is currently offline Jacob
Messages: 7
Registered: July 2009
Junior Member
David, thank you for the link. Unfortunately, despite a recent series of
commits, the project does not appear to be maintained (last release was in
January, 2007). I understand the idea behind it, though, and it does seem
to be the best way to fulfill my requirements, so I spent some time testing
it today to see if it would be able to build any of my projects.
Unfortunately, it did not succeed. I was wondering if anyone might be able
to point me to a similar project that might allow easy integration of
Eclipse building with Ant?

Thanks again, and I look forward to hearing what you think,

Jacob

David Carver wrote:

> You might be interested in Ant 4 Eclipse:
>
> http://ant4eclipse.sourceforge.net/ant-for-eclipse-home.html
>
> It'll allow you to write Ant scripts that leverage your existing eclipse
> configuration files.
>
> Dave
>
>
> Eric Rizzo wrote:
>> Copying this to the eclipse.webtools newsgroup where it might get more
>> attention.
>>
>> Jacob wrote:
>>> Hello all,
>>>
>>> I am currently using Eclipse's built-in, automated build tools to
>>> build my workspace which is comprised of several interdependent
>>> projects. This works fine for the moment, but I'd like to migrate to a
>>> headless, automated build system. One solution would be to use ANT,
>>> but I would prefer to continue using Eclipse's build tools, and I have
>>> found some documentation that seems to indicated that it is possible
>>> to run Eclipse headless and have it build the build the workspace
>>> [http://help.eclipse.org/ganymede/index.jsp]. In addition to building
>>> my projects' class files, I need to be able to export a WAR using
>>> Eclipse's built-in WAR exporter, and I was wondering if it would be
>>> possible to script this from the command-line in a similar manner as
>>> above, by simply executing Eclipse and passing in command-line
>>> arguments?
>>>
>>> If not, would the WAR exporter and jdt.apt.core.aptBuild be fairly
>>> well-exposed to an external script running on the JVM (for example
>>> Rhino or Jython)? Is there any sample code that implements something
>>> similar to this?
>>> I would greatly appreciate any guidance anyone can offer. Thanks,
>>>
>>> Jacob Beard
>>>
Re: Scripting headless export of WAR file [message #221161 is a reply to message #221087] Tue, 09 September 2008 18:05 Go to previous message
Jacob is currently offline Jacob
Messages: 7
Registered: July 2009
Junior Member
Also, I was wondering if the WAR exporter was fairly well exposed to other
Eclipse plugins. Any information on the exporter class (for instance, where
in webtools it lives; a link to the javadoc would be fantastic) would be
greatly appreciated.

Thanks again,

Jacob

David Carver wrote:

> You might be interested in Ant 4 Eclipse:
>
> http://ant4eclipse.sourceforge.net/ant-for-eclipse-home.html
>
> It'll allow you to write Ant scripts that leverage your existing eclipse
> configuration files.
>
> Dave
>
>
> Eric Rizzo wrote:
>> Copying this to the eclipse.webtools newsgroup where it might get more
>> attention.
>>
>> Jacob wrote:
>>> Hello all,
>>>
>>> I am currently using Eclipse's built-in, automated build tools to
>>> build my workspace which is comprised of several interdependent
>>> projects. This works fine for the moment, but I'd like to migrate to a
>>> headless, automated build system. One solution would be to use ANT,
>>> but I would prefer to continue using Eclipse's build tools, and I have
>>> found some documentation that seems to indicated that it is possible
>>> to run Eclipse headless and have it build the build the workspace
>>> [http://help.eclipse.org/ganymede/index.jsp]. In addition to building
>>> my projects' class files, I need to be able to export a WAR using
>>> Eclipse's built-in WAR exporter, and I was wondering if it would be
>>> possible to script this from the command-line in a similar manner as
>>> above, by simply executing Eclipse and passing in command-line
>>> arguments?
>>>
>>> If not, would the WAR exporter and jdt.apt.core.aptBuild be fairly
>>> well-exposed to an external script running on the JVM (for example
>>> Rhino or Jython)? Is there any sample code that implements something
>>> similar to this?
>>> I would greatly appreciate any guidance anyone can offer. Thanks,
>>>
>>> Jacob Beard
>>>
Previous Topic:XSL Tools - Transformation Run Configuration
Next Topic:Problem running application under Tomcat in Eclipse
Goto Forum:
  


Current Time: Fri Apr 18 04:16:28 EDT 2014

Powered by FUDForum. Page generated in 0.01854 seconds