Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Different output folders for different source folders
Different output folders for different source folders [message #194628] Mon, 31 January 2005 09:53 Go to next message
Eclipse UserFriend
Originally posted by: marcus.tangermann.web.de

Hi,

in my plug-in I have different source folders depending
on special ids of devices. E.g. code for deviceUno is under
src/deviceUno and the code for device due is under src/due
These folders are added as source classpath entries to the
raw classpath of the java project.
The problem is that i don't know how to set a different output
path for each source folder (e.g. bin/deviceUno and bin/deviceDue).
Is this possible with the JDT by a plug-in?

Bye
Marcus
Re: Different output folders for different source folders [message #194637 is a reply to message #194628] Mon, 31 January 2005 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Yes it is possible. Do you need it to it through code or through the UI?

If through code, you create a classpath entry like:

<classpathentry
output="bin_beaninfocommon"
kind="src"
path="beaninfoCommon"/>

This says for the source folder beaninfoCommmon, that the output is in
the bin_beanininfocommon folder.

To create such an entry use

JavaCore.newSourceEntry(IPath path, IPath[] exclusionPatterns, IPath
specificOutputLocation)


--
Thanks,
Rich Kulp
Re: Different output folders for different source folders [message #194644 is a reply to message #194628] Mon, 31 January 2005 09:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Marcus Tangermann wrote:

>Hi,
>
>in my plug-in I have different source folders depending
>on special ids of devices. E.g. code for deviceUno is under
>src/deviceUno and the code for device due is under src/due
>These folders are added as source classpath entries to the
>raw classpath of the java project.
>The problem is that i don't know how to set a different output
>path for each source folder (e.g. bin/deviceUno and bin/deviceDue).
>
>
Open the project properties and select "Java Build Path". Click "Source"
and then check the "Allow output folders for source folders." check box.

Dani

>Is this possible with the JDT by a plug-in?
>
>Bye
>Marcus
>
>
>
Re: Different output folders for different source folders [message #194652 is a reply to message #194637] Mon, 31 January 2005 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: marcus.tangermann.web.de

Hi,

thank you, the functionality of setting output folders
for source folder in newSourceEntry was the one I was
looking for. Looks like it works now :-)

Bye
Marcus
P.S.: Your answer was realy fast :-)

Rich Kulp wrote:

> Yes it is possible. Do you need it to it through code or through the UI?
>
> If through code, you create a classpath entry like:
>
> <classpathentry
> output="bin_beaninfocommon"
> kind="src"
> path="beaninfoCommon"/>
>
> This says for the source folder beaninfoCommmon, that the output is in
> the bin_beanininfocommon folder.
>
> To create such an entry use
>
> JavaCore.newSourceEntry(IPath path, IPath[] exclusionPatterns, IPath
> specificOutputLocation)
>
>
Previous Topic:General/Ant gripes and groans
Next Topic:Log error for Struts tag libraries
Goto Forum:
  


Current Time: Sat Jul 12 00:57:22 EDT 2025

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

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

Back to the top