Results 1 to 8 of 8

Thread: javac with -sourcepath switch

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved javac with -sourcepath switch

    I'm a little bit of lost with the -sourcepath switch. I'm structuring my project like this
    Code:
    classes
        + class destination
    docs
        + documentation
    src
        + java files
    make.bat
    And my make.bat is
    Code:
    javac -d classes -sourcepath src/*.java
    javadoc -d doc -sourcepath src/*.java
    But it only gets the last file. Say I have dtgen.java and Server.java, it only gets Server.java to be compiled and the class gets to classes and Server.html to doc+generated htmls.

    What should I put after -sourcepath switch? Right now, I ended up to putting make.bat to src folder having a content like
    Code:
    javac -d ../classes *.java
    javadoc -d ../doc *.java
    Thanks in advance.
    Last edited by nebulom; Jun 14th, 2005 at 04:43 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width