Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Variable directory location with target files
Variable directory location with target files [message #515042] Wed, 17 February 2010 14:40 Go to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I am using a target file (made using the Eclipse IDE) to do my Buckminster build.

At the moment, the file looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>

<target name="Eclipse RCP">
<locations>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.equinox.executable.feature.group" version="3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn"/>
<unit id="org.eclipse.rcp.sdk.id" version="3.5.1.M20090917-0800"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
<location path="c:/mytarget" type="Directory"/>
</locations>
</target>

I want to vary the location of the target, because I have a Windows and a Linux build process. So I want to use a variable like ${WORKSPACE} in there.

Is there a way to use variables here? Or I am missing the point of something here? I am open to other suggestions on how I should be producing target platforms etc.

I would also like to know why the tutorial at http://www.ralfebert.de/blog/eclipsercp/rcp_builds/ doesn't use a directory location...

Thanks heaps!

Greg

[Updated on: Wed, 17 February 2010 14:41]

Report message to a moderator

Re: How to use variable directory location with target files [message #515094 is a reply to message #515042] Wed, 17 February 2010 17:07 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Geejay,
The .target file is parsed by PDE so you must use the PDE property, i.e. ${workspace_loc}.

HTH,
- thomas


On 02/17/2010 03:40 PM, Geejay wrote:
> I am using a target file (made using the Eclipse IDE) to do my
> Buckminster build.
>
> At the moment, the file looks like this:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <?pde version="3.5"?>
>
> <target name="Eclipse RCP">
> <locations>
> <location includeAllPlatforms="true" includeMode="slicer"
> type="InstallableUnit">
> <unit id="org.eclipse.equinox.executable.feature.group"
> version="3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn"/>
> <unit id="org.eclipse.rcp.sdk.id" version="3.5.1.M20090917-0800"/>
> <repository location="http://download.eclipse.org/releases/galileo"/>
> </location>
> <location path="c:/mytarget" type="Directory"/>
> </locations>
> </target>
>
> I want to vary the location of the target, because I have a Windows and
> a Linux build process. So I want to use a variable like ${WORKSPACE} in
> there.
>
> Is there a way to use variables here? Or I am missing the point of
> something here? I am open to other suggestions on how I should be
> producing target platforms etc.
>
> I would also like to know why the tutorial at
> http://www.ralfebert.de/blog/eclipsercp/rcp_builds/ doesn't use a
> directory location...
>
> Thanks heaps!
>
> Greg
>
Re: How to use variable directory location with target files [message #515212 is a reply to message #515094] Thu, 18 February 2010 08:30 Go to previous messageGo to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
Thanks Thomas.

Now I seem to be getting a

java.lang.IllegalArgumentException: Path must include project and resource name: /rcp.target


This is in my Linux environment.

The strange thing is, it works fine on Windows

Here is rcp.target:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>
<target name="Eclipse RCP">
<locations>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.equinox.executable.feature.group" version="3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn"/>
<unit id="org.eclipse.rcp.sdk.id" version="3.5.1.M20090917-0800"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
<location path="${workspace_loc}/mytarget" type="Directory"/>
</locations>
</target>

Any ideas?

EDIT: I got around this by departing from the target definiton file thing all together. Now, I build my targets "on the fly" as recommended by the tutorial here.

Hudson can actually pick up the (archived) target in a seperate build.

[Updated on: Thu, 18 February 2010 15:02]

Report message to a moderator

Re: How to use variable directory location with target files [message #515526 is a reply to message #515212] Fri, 19 February 2010 09:11 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
OK, so PDE requires that the target is a resource. Try creating a "mytarget" as a project and then use:

${workspace_loc:mytarget}

- thomas

On 02/18/2010 09:31 AM, Geejay wrote:
> Thanks Thomas.
>
> Now I seem to be getting a
> java.lang.IllegalArgumentException: Path must include project and
> resource name.
>
> This is in my Linux environment.
>
> The strange thing is, it works fine on Windows, for example with this
> target:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <?pde version="3.5"?>
>
> <target name="Eclipse RCP">
> <locations>
> <location includeAllPlatforms="true" includeMode="slicer"
> type="InstallableUnit">
> <unit id="org.eclipse.equinox.executable.feature.group"
> version="3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn"/>
> <unit id="org.eclipse.rcp.sdk.id" version="3.5.1.M20090917-0800"/>
> <repository location="http://download.eclipse.org/releases/galileo"/>
> </location>
> <location path="${workspace_loc}/mytarget" type="Directory"/>
> </locations>
> </target>
>
> Any ideas?
Previous Topic:Problem getting org.eclipse.equinox.executable.feature to materialize
Next Topic:More bucky 3.6 p2 agent trouble...
Goto Forum:
  


Current Time: Thu Sep 23 18:35:52 GMT 2021

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

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

Back to the top