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 271487 - Netbeans corrupts build-impl.xml files with modulepath options that will not compile.
Summary: Netbeans corrupts build-impl.xml files with modulepath options that will not ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: PC All
: P1 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-15 17:56 UTC by Falchion14
Modified: 2018-08-02 16:44 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 Falchion14 2017-09-15 17:56:32 UTC
Netbeans automatically generates the build-impl.xml file in a way that does not work correctly outside of Netbeans.

Running vanilla Ant 1.9.9 or Ant 1.10.1 using Java 1.8 results in the following error:

BUILD FAILED
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:278: The following error occurred while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\build.xml:229: The following error occurred while executing this line:
C:\Users\Stephen\hcs\orc.trunk\nb\ServerLibWOC\nbproject\build-impl.xml:1623: Unknown attribute [modulepath]

Total time: 2 minutes 35 seconds

Being able to build from the command line is important for continuous build (e.g. Jenkins or Hudson) and release processes that will not be done from inside Netbeans.

Netbeans should work correctly or at least provide information about what additional or substitute libraries are required to make the build work correctly.
Comment 1 Falchion14 2017-09-15 17:57:24 UTC
Workaround: Edit all build-impl.xml files and remove the "modulepath=" references.  This has to be done frequently as Netbeans will re-introduce the "modulepath" at a later date.
Comment 2 Falchion14 2017-09-15 19:34:13 UTC
Tried running the command line version of Ant under Java 9ea, but this made no difference.
Comment 4 Falchion14 2018-08-02 16:44:17 UTC
Move defect to JIRA: https://issues.apache.org/jira/browse/NETBEANS-1106