[Scons-users] replacing ant with java
Bill Deegan
bill at baddogconsulting.com
Wed Oct 19 15:21:49 EDT 2016
One issue is that you are setting your target to a directory.
Ideally you'd list all the files output by your ant build
tgts = common_env.Command(target = [currentDir + '/bin', currentDir +
'/Rules.pkg'], source = 'build.xml', action = 'ant -q -f $SOURCE')
instead target would be xyz.jar, or similar.
-Bill
On Wed, Oct 19, 2016 at 11:49 AM, peterphonic <pierreluc.boily at gmail.com>
wrote:
> 1 - My tree <http://pastebin.com/TfM6HMfc> . (It is a fraction of our
> project. Java represent 1% of our code base, but make our -j4 fail )
> 2 - rules_engine_main.sc <http://pastebin.com/tQUxVKE2>
> 3 - rules_engine_model.sc <http://pastebin.com/4g1wT122>
> 4 - rules_engine_utils.sc <http://pastebin.com/jR1RUQQw>
> 5 - vac_model.sc <http://pastebin.com/RrDueyC9>
>
> After carefully analyzing my SConscript, I saw problems in my logic, I
> realized that I tried to recreate what we did for our Make system.
>
> Our Make system :
> - Build single threaded
> - Was able to build sub part of our java code
> - Calling main java make file was invoking a build.xml
> <http://pastebin.com/4aaxHmS5> that was taking care or calling all
> dependencies.
>
> My Scons system
> - When invoking scons -j4, scons invoke all SConscript above. The problem
> is the ant command in rules_engine_main.sc invoke compilation of model
> component, while this same component is also invoke with ant command in
> rules_engine_model.sc. So, it is compile twice at the same time!
>
> What I should do is keep only rules_engine_main.sc. This one (thru ant
> build.xml) take care of compiling all dependencies. I am gonna try this
> and
> will be back later.
>
> (P.S, if you see something bad in my .sc file, your comments are welcome.)
>
> thx
>
>
>
>
> --
> View this message in context: http://scons.1086193.n5.
> nabble.com/replacing-ant-with-java-tp40648p40655.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20161019/ea758778/attachment.html>
More information about the Scons-users
mailing list