Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Re: Scripting headless export of WAR file
Re: Scripting headless export of WAR file [message #221071] Tue, 09 September 2008 13:29 Go to next message
Eclipse UserFriend
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 14:20 Go to previous messageGo to next message
Jacob is currently offline JacobFriend
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 15:56 Go to previous messageGo to next message
Eclipse UserFriend
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 21:36 Go to previous messageGo to next message
Jacob is currently offline JacobFriend
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 22:05 Go to previous message
Jacob is currently offline JacobFriend
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: Thu Apr 25 06:50:14 GMT 2024

Powered by FUDForum. Page generated in 0.03142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top