tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46400] New: jspc does not work correctly if the dectination is windows unc path
Date Mon, 15 Dec 2008 16:05:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46400

           Summary: jspc does not work correctly if the dectination is
                    windows unc path
           Product: Tomcat 6
           Version: 6.0.14
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: hrendalf@gmail.com


Run the following commands:

> cd 
d:\testunc

> java -cp <tomcat;etc> org.apache.jasper.JspC 
  -d \\server001\mytestdir\compiledjsp
  -webapp \\server001\test\mywebapp
  -p jsp.precompiled.webapp
  -source 1.4 -target 1.4

The java classes are generated; but placed to wrong location:
d:\mytestdir\compiledjsp

The server name is ignored, the directory is created on the current drive.

Most probably, the problem is caused by the deprecated File.toURL() method,
which does not process UNC paths correctly.

For example, in the JspCompilationContext class:

protected void createOutputDir() {
  ...
  baseUrl = options.getScratchDir().toURL();
  ...
}


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message