Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » invoking Buckminster from an ant script
invoking Buckminster from an ant script [message #976045] Thu, 08 November 2012 09:12 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I was invoking buckminster from an ant script as follows (snippet):

<exec executable="${buckminster.home}/${executable.file}">
<arg value="-Dprojects.location=${projects.location}" />
<arg
value="-Dbuckminster.output.root=${build.root}/buckminster.output" />
<arg
value="-Dbuckminster.temp.root=${build.root}/buckminster.temp" />
<arg
value="-Dtarget.platform=${build.root}/${target.platform}" />
<arg line="-data '${build.root}/buckminster.workspace'" />
<arg line="-configuration '${build.root}/configuration'" />
<arg line="-S '${resolve.commands.file}'" />
</exec>

and this works fine in Linux... but not in Windows, since the paths
contain the dreadful \ which are considered escape chars...

I'm not a regular windows user, thus I was wondering what is the
"portable" way of executing buckminster from ant so that it behaves
correctly also in windows...

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: invoking Buckminster from an ant script [message #976526 is a reply to message #976045] Thu, 08 November 2012 16:50 Go to previous messageGo to next message
Andrea Richiardi is currently offline Andrea RichiardiFriend
Messages: 64
Registered: August 2012
Member
I think if you use the file:/ protocol you should be able to use the / paths even if you are on Windows. I am not entirely sure about that though because I have just had an issue with that.
Re: invoking Buckminster from an ant script [message #977404 is a reply to message #976045] Fri, 09 November 2012 08:53 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
After many attempts I came to the conclusion that, probably, at least in
Windows 7, running buckminster.bat with -Dkey=path simply does not work:
the path is not interpreted correctly...

However, by taking a look at
https://github.com/micahhainline/lightning/blob/master/buckminster.build.feature/build.xml
I tried to invoke bucky with a <java> task and use <sysproperty> e.g.,

<java fork="true" dir="${buckminster.home}" logError="true"
classname="org.eclipse.core.launcher.Main" failonerror="true">
<classpath>
<fileset dir="${buckminster.home}/plugins">
<include name="org.eclipse.equinox.launcher_*.jar" />
</fileset>
</classpath>
<arg line='-update' />
<arg line='-data "${build.root}/buckminster.workspace"' />
<arg line='-configuration "${build.root}/configuration"' />
<arg line='--script "${resolve.commands.file}"' />
<sysproperty key="projects.location"
value="${projects.location}" />
<sysproperty key="buckminster.output.root"
value="${build.root}/buckminster.output" />
<sysproperty key="buckminster.temp.root"
value="${build.root}/buckminster.temp" />
<sysproperty key="target.platform"
value="${build.root}/${target.platform}" />
<jvmarg line=" -Xms256m -Xmx512m" />
</java>

and it works! :)
both in windows and linux :)

I've updated
http://www.lorenzobettini.it/2012/11/materializing-and-provisioning-your-target-platform-as-local-p2-site-with-buckminster/
accordingly

hope this helps!

would a wiki page help?

cheers
Lorenzo



On 11/08/2012 10:12 AM, Lorenzo Bettini wrote:
> Hi
>
> I was invoking buckminster from an ant script as follows (snippet):
>
> <exec executable="${buckminster.home}/${executable.file}">
> <arg value="-Dprojects.location=${projects.location}" />
> <arg
> value="-Dbuckminster.output.root=${build.root}/buckminster.output" />
> <arg
> value="-Dbuckminster.temp.root=${build.root}/buckminster.temp" />
> <arg
> value="-Dtarget.platform=${build.root}/${target.platform}" />
> <arg line="-data '${build.root}/buckminster.workspace'" />
> <arg line="-configuration '${build.root}/configuration'" />
> <arg line="-S '${resolve.commands.file}'" />
> </exec>
>
> and this works fine in Linux... but not in Windows, since the paths
> contain the dreadful \ which are considered escape chars...
>
> I'm not a regular windows user, thus I was wondering what is the
> "portable" way of executing buckminster from ant so that it behaves
> correctly also in windows...
>
> thanks in advance
> Lorenzo
>


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:reader for old archive locations.
Next Topic:[Solved]Optional Dependencies
Goto Forum:
  


Current Time: Thu Mar 28 12:21:03 GMT 2024

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

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

Back to the top