This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 125955 - Generated Ant build is not cross platform
Summary: Generated Ant build is not cross platform
Status: RESOLVED DUPLICATE of bug 44035
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 20:43 UTC by eguy
Modified: 2008-01-25 00:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eguy 2008-01-24 20:43:06 UTC
Generated Ant build references dependent libraries in a way that will not compile on other machines.

Steps to duplicate:
1) create a new project, Category: "JAVA", Project: Java Application (IDE will manage and generate ant files for you)
2) add a lib folder inside your project with a dependent jar
3) write code that references the dependent jar
4) Under project properties->Libraries, add the jar file in the compile tab
5) save project
6) Copy project to another OS (I tried both Linux to WindowsXP and WindowsXP to Linux)
7) calling ant from the command line fails with a "Cannot find symbol" with every reference to classes in the jar
8) Loading the project in Netbeans results in a "Reference Problems"

Why this is a bug:
I can't check in the ant build files because it builds on a different OS.  If I can't check in the build files the ant
files feature does me no good, I'll have to write my own build.xml anyway.  

The jars are relative to the project, stored in the project and it shouldn't use include a full path.  Looking at the
nbproject\project.properties if looks like it is indended to work the way I think it should: I only see relative paths.

Here is my project.properties:
vadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=local
jnlp.enabled=false
jnlp.offline-allowed=false
jnlp.signed=false
main.class=XmlStoreAndZeus
meta.inf.dir=${src.dir}/META-INF
platform.active=default_platform
run.classpath=\
    ${javac.classpath}:\
    ${build.classes.dir}:\
    ${file.reference.jaxb-impl.jar-1}:\
    ${file.reference.xstream-1.2.2.jar}
# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.test.classpath=\
    ${javac.test.classpath}:\
    ${build.test.classes.dir}:\
    ${file.reference.jaxb-impl.jar-1}:\
    ${file.reference.xstream-1.2.2.jar}
source.encoding=UTF-8
src.dir=src
src.samples.dir=samples
src.src-gen.dir=src-gen
test.src.dir=test
Comment 1 Jesse Glick 2008-01-25 00:06:41 UTC

*** This issue has been marked as a duplicate of 44035 ***