Menu

#26 Sheets in Unix: Compilation

open
nobody
None
1
2002-08-13
2002-08-13
No

There are a couple exceedingly odd bugs while running
under unix. The one that's baffling is this one:

[apowers@homenet2 sheets]$ java -Xmx128m -classpath
$JAVA_HOME/lib/tools.jar:tools/ant.jar
org.apache.tools.ant.Main -emacs opendev
Buildfile: build.xml

opendev:
Launching sheets...

*** Hitting compile inside sheets: ***
Executing ant.bat compile -- output follows:
Execution of ant.bat compile failed to start:
java.io.IOException: java.io.IOException: ant.bat: not
found

(Note that ant.bat does exist, but it won't work under
unix).
This makes no sense. We're looking for ant.bat. The
wierd part is that no files we're using contain the
text "ant.bat" so I can't find a way to fix this
problem! Where's it getting called from?

The other bug will be filed separately.

Discussion

  • Aaron Powers

    Aaron Powers - 2002-08-13
    • priority: 8 --> 1
     
  • Aaron Powers

    Aaron Powers - 2002-08-13

    Logged In: YES
    user_id=338208

    Correction: The .sheetsrc file includes two references to
    ant.bat.
    Changing these works.
    However, for cross-platform compatibility, .sheetsrc should
    not use "ant.bat" as a reference for compiling. It would be
    nice if it optionally spontaneously generated the command
    found in "ant.bat" and "ant" to do this. Alternatively, a
    new "antCompile.bat" could be created and we could change
    the command in .sheetsrc to "../antCompile.bat", sorta...

     
  • Aaron Powers

    Aaron Powers - 2003-07-22

    Logged In: YES
    user_id=338208

    Fixed by making it automatically search for the appropriate
    "ant.bat" or "ant.sh" or "ant" as long as the .sheetsrc
    command is "ant"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.