Skip to content

java builder scans directory too early #1486

Closed

Description

@bdbaddog

This issue was originally created at: 2006-10-20 08:16:22.
This issue was reported by: wfranzini.
wfranzini said at 2006-10-20 08:16:22

I think the java builder scans source directory too early. If a source file il
generated during the build then to be compiled 2 scons invocations are needed.
THe firts one to generate the source, the second one to compile it.


files = ['jsrc/Test.java', 'jsrc/Test2.java']
env = Environment ()
java_src = env.Command (files,
             'SConstruct',
             'mkdir -p jsrc; echo "class Test{}" > jsrc/Test.java; echo "class 
Test2{}" > jsrc/Test2.java')
java_compile = env.Java (target='classes', source='jsrc')

stevenknight said at 2007-08-07 20:25:58

Fixed as part of bug 1672.

If you run into any new problems (there may still be some in corner-case
interactions), please open up new issues for them.

Thanks,

*** This issue has been marked as a duplicate of 1672 ***

stevenknight said this issue is a duplicate of #1672 at 2007-08-07 20:25:58.

Activity

  1. added
    Java
    and removed on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaVersion: 0.96.92bugduplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions