Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Refer to variables in a features build.properties

> Anybody has an idea how to do this with standard maven/tycho plugins
> without changing existing files in the repository (I'm fine with a
> build.properties.in -> build.properties transition that does the
> replacement)?

The maven-resources-plugin should be able to do this for you.

> > With ant I could just set an ant property and it worked fine.

This could be an undocumented feature in the PDE headless build. So this is the reason why it's not implemented in Tycho. If you have details of how it is supposed to work/used to work in the PDE headless build, it would be helpfull if you could open a feature request in Tycho for this [1]

Regards
Tobias

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Tycho


> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Andreas Pakulat
> Sent: Mittwoch, 27. August 2014 13:01
> To: tycho-users
> Subject: Re: [tycho-user] Refer to variables in a features
> build.properties
> 
> Hi,
> 
> On 2014-08-25 10:51, Andreas Pakulat wrote:
> > I'm currently working on switching an ant/pde buildsystem to
> Maven/Tycho and
> > hitting a road bump that I can't seem to find answers for.
> >
> > We're including a JRE in our product by having a feature using the
> rootfiles
> > support. In principle this works fine with Maven/Tycho.
> >
> > However the machines that are going to build the product have the root
> > folder in different places, so the build.properties file uses a
> > variable to make part of the absolute path come in from the outside.
> With
> > ant I could just set an ant property and it worked fine.
> >
> > With Maven/Tycho, as soon as I add the variable reference to the
> > build.properties file the root folder to be included is not found
> anymore.
> 
> Answering my own question after looking at the Tycho source code: This is
> currently not possible since Tycho does not expect anything but plain
> vanilla
> path strings in the properties file.
> 
> I've tried to find a maven solution for replacing the ${jreBaseDir} in
> the
> build.properties file, but all I can come up with either changes the file
> in-place inside the source repository (causing local changes to happen in
> the
> CI system which we don't want) or requires adding external maven plugins.
> 
> Anybody has an idea how to do this with standard maven/tycho plugins
> without
> changing existing files in the repository (I'm fine with a
> build.properties.in -> build.properties transition that does the
> replacement)?
> 
> Andreas
> 
> --
> Andreas Pakulat squish@xxxxxxxxxxxxx
> froglogic GmbH - Automated UI and Web Testing
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top