Results 1 to 2 of 2
  1. #1
    jv_martin is offline Member
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Default different external libraries for different OS and CVS

    Hi,

    I have a project that uses swt (jar). I build it both on MacOSX and Windows.

    The external library is different for the two machines, so the Java Build Path is different for each. Still I want to keep one common code base, which I control using CVS.

    For the two different version of the file .classpath I could use branches in CVS, but I would prefer to prevent it.

    Is there a way that the .classpath file can be made to support both library entries and ignore the one missing (and unneeded) on the other OS?

    Greetings,
    Martin

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Why cannot create the jar file with both external jar files. But may be in that case you need to select the correct jar file programatically within your code .

Similar Threads

  1. Not Copying Libraries!?!
    By Atriamax in forum NetBeans
    Replies: 0
    Last Post: 10-13-2009, 07:56 AM
  2. How to load new libraries
    By Manfizy in forum NetBeans
    Replies: 2
    Last Post: 02-11-2009, 06:55 AM
  3. Reading Libraries.
    By leiferouis in forum New To Java
    Replies: 4
    Last Post: 02-07-2009, 08:34 PM
  4. Accessing libraries in Eclipse
    By JL4 in forum New To Java
    Replies: 0
    Last Post: 12-26-2008, 03:11 PM
  5. digital sign libraries
    By Shuru in forum Advanced Java
    Replies: 4
    Last Post: 11-07-2008, 08:01 AM

Tags for this Thread

Posting Permissions

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