Skip to content

Definition of JAVACCOM is dubious #1075

Closed

Description

@bdbaddog

This issue was originally created at: 2005-02-22 02:13:23.
This issue was reported by: aanno.
aanno said at 2005-02-22 02:13:23

Hello,

this is the definition of the construction variable
JAVACCOM in scons v0.96.90.D001:

'$JAVAC $JAVACFLAGS -d
${TARGET.attributes.java_classdir} -sourcepath
${SOURCE.dir.rdir()} $SOURCES'

My observation is that this is NOT appropiate.
${SOURCE.dir.rdir()} get expanded to the directory the
first *.java file is found in. In my case this is

javac -d build/web/WEB-INF/classes -sourcepath
src/de/atron/a2/data/basic
src/de/atron/a2/data/basic/IA2Date.java [...]

But IA2Date.java is in the java package
'de.atron.a2.data.basic'. Thus it should be
'-sourcepath src'.

In addition I have the following remarks:

  • The builder's name should be 'Javac' (not Java)
  • There should be another builder 'Java' that can execute
    arbitary java programs.
  • Both builder should use have an additional CLASSPATH
    construction variable (because it is normal to include
    additional libraries (*.jar) when compiling and when
    executing java code).

Cheers,

aanno

issues@scons said at 2005-02-22 02:13:23

Converted from SourceForge tracker item 1146105

stevenknight said at 2007-08-07 15:15:26

Marking this fixed. The next release has changed $JAVACCOM so that the user has
explicit control over the -sourcepath argument by setting a $JAVASOURCEPATH
variable.

There is also a new $JAVACLASSPATH variable that gets added to the command line
via -classpath.

stevenknight said this issue blocks #1664 at 2007-08-07 15:15:26.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions