Menu

#306 Linux Build System Issues

v1.0 (example)
closed-fixed
nobody
build (1)
5
2015-11-17
2015-11-16
Russ Adams
No

I've included a patch which partially addresses some build system issues which are present in Linux environments. That said, the patch is not perfect since it requires a hard coded list of files. My interest in this was to work-around build problems so that I can use IKVM in my Linux environment.

Issue #1: Case Differences

System.Xml.jar is sometimes used as "System.XML.jar" and other times as "System.Xml.jar". On Windows, this doesn't matter because case is insensitive in NTFS. On Linux this can create issues finding the file.

Issue #2: Wildcard Expansion

The 'run-nasgen' task in openjdk.build is trying to use a wildcard character in the path to the source files for a javac invocation. In Windows, cmd will expand the asterisk into all matching .java files in the directory. On Linux, nant does not invoke a shell and so the asterisk is interpretted literally. The result is that the run-nasgen task fails because the javac invocation cannot find "*.java".

1 Attachments

Discussion

  • Russ Adams

    Russ Adams - 2015-11-16

    Attaching an additional required file for this workaround.

     
  • Jeroen Frijters

    Jeroen Frijters - 2015-11-17

    The System.XML thing is actually partially the fault of Microsoft. They named the file System.XML.dll, but the assembly name is System.Xml.
    I'll add some nant stuff to generate the nasgen.lst file during the build.

    [edit to correct the blame]

     

    Last edit: Jeroen Frijters 2015-11-17
  • Jeroen Frijters

    Jeroen Frijters - 2015-11-17

    Should be fixed in cvs now. Thanks!

     
  • Jeroen Frijters

    Jeroen Frijters - 2015-11-17
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB