Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Zipping up files to "build" a project
Zipping up files to "build" a project [message #666594] Thu, 21 April 2011 08:53 Go to next message
Nick Bloor is currently offline Nick BloorFriend
Messages: 1
Registered: April 2011
Junior Member
I'm sure I already posted a topic asking for help with this but my control panel seems to think I have no posts!

I'm working on a Firefox add-on in Eclipse. To deploy and test the add-on I need to zip up a set of files and change the file extension of the zip file to '.xpi' - similar to how a Java .jar file is actually a zip archive.

I've never used any kind of customised build process in any projects I've worked on in the past - it's always been a case of hitting compile and whichever IDE I happen to be using takes care of the rest. For this project obviously there isn't such an option but I figured it can't be too hard to set up a custom build process and hopefully integrate it with eclipse.

Can anyone make any recommendations on how I can set up a customised build process to selectively zip up a set of files in my project and rename the resulting zip archive to have a .xpi extension?

[Updated on: Thu, 21 April 2011 08:54]

Report message to a moderator

Re: Zipping up files to "build" a project [message #666641 is a reply to message #666594] Thu, 21 April 2011 12:17 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.04.21 2:53, Nick Bloor wrote:
> I'm sure I already posted a topic asking for help with this but my
> control panel seems to think I have no posts!
>
> I'm working on a Firefox add-on in Eclipse. To deploy and test the
> add-on I need to zip up a set of files and change the file extension of
> the zip file to '.xpi' - similar to how a Java .jar file is actually a
> .zip archive.
>
> I've never used any kind of customised build process in any projects
> I've worked on in the past - it's always been a case of hitting compile
> and whichever IDE I happen to be using takes care of the rest. For this
> project obviously there isn't such an option but I figured it can't be
> too hard to set up a custom build process and hopefully integrate it
> with eclipse.
>
> Can anyone make any recommendations on how I can set up a customised
> build process to selectively zip up a set of files in my project and
> rename the resulting zip archive to have a .xpi extension?

I'd write an ant script in the root of my project. While not a good
learning tool for ant,
http://www.javahotchocolate.com/tutorials/apache-ant.html will show how
examples of using it from Eclipse.
Previous Topic:Keeping the workspace lite?
Next Topic:unable to recognize java.lang.annotation class
Goto Forum:
  


Current Time: Sat Apr 20 00:13:18 GMT 2024

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

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

Back to the top