Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: 1 project 2 jar files
Re: 1 project 2 jar files [message #218560] Thu, 31 July 2008 17:40
Ed Merks is currently offline Ed Merks
Messages: 25750
Registered: July 2009
Senior Member
Arinté,

I think it will still work for any project, but I've added the WTP
newsgroup since maybe there's a better way to do it for a web project...


Arinté wrote:
> There only seems to be build.properties for plugins other projects it
> seem don't have them.
>
> Ed Merks wrote:
>> Arinté,
>>
>> I think it still applies because it's used when you export the
>> project for deployment, but to be honest, I only ever build plugins
>> so it's possible I'm wrong. Don't you already have a
>> build.properties file?
>>
>>
>> Arinté wrote:
>>> I think I understand what you are pointing out, but I am not
>>> building a plugin this is a web app actually. Can I still use the
>>> build.properties?
>>>
>>>
>>> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
>>> news:g6sqjo$9l0$1@build.eclipse.org...
>>> ------------------------------------------------------------ ----------------------------------------
>>>
>>> Arinté,
>>>
>>> You'll want to change the project's Java build path so each has a
>>> different output folder and then set up the build.properties to
>>> build a jar from each. Here's how we specify a plugin that has an
>>> ant tasks jar:
>>>
>>> bin.includes = META-INF/,\
>>> .,\
>>> about.html,\
>>> plugin.properties,\
>>> plugin.xml,\
>>> ant_tasks/emf.ant.tasks.jar
>>> src.includes = about.html,\
>>> readme.html,\
>>> examples/
>>> jars.compile.order = .,\
>>> ant_tasks/emf.ant.tasks.jar
>>> source.. = src/
>>> output.. = bin/
>>> source.ant_tasks/emf.ant.tasks.jar = tasks/
>>> output.ant_tasks/emf.ant.tasks.jar = bin.tasks/
>>> exclude.. = **/doc-files/**
>>> exclude.ant_tasks/emf.ant.tasks.jar = **/doc-files/**
>>>
>>>
>>>
>>> Arinté wrote:
>>> I have a web project that has the src files and test/mock files.
>>> When the
>>> project is build I want to produce 2 jar files one for the src
>>> classes and
>>> one for the test/mock classes. How can I do this in Eclipse 3.4?
>>>
>>>
>>>
>>>
>>>
>>>
Previous Topic:Re: Strange memory behavior?
Next Topic:Re: Eclipse Web Tools, publishing failed
Goto Forum:
  


Current Time: Thu Apr 24 06:36:19 EDT 2014

Powered by FUDForum. Page generated in 0.04200 seconds