Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » using variable in build output path
using variable in build output path [message #515704] Fri, 19 February 2010 10:22 Go to next message
Eclipse UserFriend
Originally posted by: cjcool.comcast.net

Gang:

Is it possible to use a variable in the output folder path? For example, my
kind="output" classpath entry points to a relative location under my
project:

classpathentry kind="output" path="bin"

but I would like to use a variable in the path so I can control the location
of the output. For example,

classpathentry kind="output" path="MY_TARGET/bin"

where MY_TARGET is a variable.

Thanks,

Chris
Re: using variable in build output path [message #515738 is a reply to message #515704] Fri, 19 February 2010 22:44 Go to previous messageGo to next message
Eclipse UserFriend
Chris Cool wrote:
> Gang:
>
> Is it possible to use a variable in the output folder path? For example, my
> kind="output" classpath entry points to a relative location under my
> project:
>
> classpathentry kind="output" path="bin"
>
> but I would like to use a variable in the path so I can control the location
> of the output. For example,
>
> classpathentry kind="output" path="MY_TARGET/bin"
>
> where MY_TARGET is a variable.
>
> Thanks,
>
> Chris
>
>

You can do this indirectly by first creating a resource link based on
extending the MY_TARGET variable. You can then select this location as
the output path in the Build Path dialog.
Re: using variable in build output path [message #516394 is a reply to message #515738] Tue, 23 February 2010 15:05 Go to previous message
Eclipse UserFriend
Originally posted by: cjcool.comcast.net

Thanks. That did the trick. I had a linke resource defined, but I hadn't
gone far enough into the set of Build Path dialogs.



"David Wegener" <dpwegener@gmail.com> wrote in message
news:hlnlqa$3at$1@build.eclipse.org...
> Chris Cool wrote:
>> Gang:
>>
>> Is it possible to use a variable in the output folder path? For example,
>> my kind="output" classpath entry points to a relative location under my
>> project:
>>
>> classpathentry kind="output" path="bin"
>>
>> but I would like to use a variable in the path so I can control the
>> location of the output. For example,
>>
>> classpathentry kind="output" path="MY_TARGET/bin"
>>
>> where MY_TARGET is a variable.
>>
>> Thanks,
>>
>> Chris
>
> You can do this indirectly by first creating a resource link based on
> extending the MY_TARGET variable. You can then select this location as
> the output path in the Build Path dialog.
Previous Topic:Shared Source Code Attachments
Next Topic:File locking problem in Ant
Goto Forum:
  


Current Time: Thu Mar 27 23:58:22 EDT 2025

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

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

Back to the top