[Scons-users] Scons and ant

Owen Alanzo Hogarth gurenchan at gmail.com
Mon Mar 2 21:45:15 EST 2015


Hi Russel

That was it, I ended up doing:

env.Command(target='local.properties',
       source='/Users/dev/pic/src/platform/android/java/build.xml',
       action='/usr/local/bin/ant release -f $SOURCE')

for anyone who might have issues in the future.

One more question, when using the install builder I'll get my project
installed like:

/Users/dev/pic/src/platform/android/java/usr/bin

It tacks on the install location at the end of my current directory.
The only thing that I can think of is that I am not building a Program but
a SharedLibrary, but I don't see why that should make a difference.


On Tue, Mar 3, 2015 at 1:08 AM, Russel Winder <russel at winder.org.uk> wrote:

> On Mon, 2015-03-02 at 17:34 +0800, Owen Alanzo Hogarth wrote:
> > […]
> >
> > env.Command('/usr/local/bin/ant release -f',
> > ['/Users/dev/pic/src/platform/android/java/build.xml'],
> > ['/Users/dev/pic/src/platform/android/java/bin'])
> […]
>
> I think you misread the Command section of the manual. The first
> parameter is the targets to be made, the second the sources, and the
> third the command template string. Something more along the lines of:
>
>     env.Command('/Users/dev/pic/src/platform/android/java/bin/thing',
>       ['/Users/dev/pic/src/platform/android/java/build.xml'] +
> Glob('sources_pattern'),
>       '/usr/local/bin/ant release -f')
>
> which would need a lot of doctoring for your situation, I have just
> shown something that will fail but hopefully guides you to the right
> thing.
>
> --
> Russel.
>
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150303/cfe1040d/attachment.html>


More information about the Scons-users mailing list