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.
Summary: | JSP test compile option is not platform independent | ||
---|---|---|---|
Product: | javaee | Reporter: | stevefyfe <stevefyfe> |
Component: | JSP | Assignee: | issues@javaee <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | dkonecny, marfous |
Priority: | P3 | Keywords: | SIMPLEFIX |
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
stevefyfe
2011-05-10 14:50:50 UTC
Not sure how much doable. When it should be checked/updated - before every build action? CCing David, he will be able to tell if it's wanted at all/possible or not. <java> task is used to execute JSP compilation and it is executed with sysClasspath parameter in the format it is stored in properties file. I think it should be possible to add some Ant task call to "compile-jsps" and "-do-compile-single-jsp" targets which would ensure correct platform specific encoding of classpath (turn string path into some Ant path property and then dump property back to string using for example ${toString:pathreference}). Just encountered the same issue as we develop under Linux but a CI server just introduced is running under Windows. The following change to the compile-jsps target (following David's suggestion) in build.xml did the trick for us: old: <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true"> ... <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}:${javac.classpath}"/> ... </java> new: <path id="sys.class.path"> <pathelement path="${libs.jsp-compilation-syscp.classpath}"/> <pathelement path="${javac.classpath}"/> </path> <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true"> ... <arg value="-sysClasspath ${toString:sys.class.path}"/> ... </java> Another less intrusive workaround here: http://stackoverflow.com/questions/19817905/netbeans-fails-to-compile-jsp-in-projects-created-on-diferent-os/19817906#19817906 This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |