ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45190] New: Cannot typedef from a file with a # in the path
Date Thu, 12 Jun 2008 10:34:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45190

           Summary: Cannot typedef from a file with a # in the path
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: stevel@apache.org


reported on ant-user
------------------------

Error occurs on 1.7 and 1.7.1 beta2.

If I define a typedef with a # in the path ant won't run.

I have included a patch and have not created an error, is this a known
issue or already fixed?

<typedef
file="C:\USERS\helium\helium-dev-forbuilds#\helium\tools\compile\compile
.antlib.xml"/>

BUILD FAILED
C:\USERS\helium\helium-dev-forbuilds#\helium\build.xml:15: The following
error o
ccurred while executing this line:
C:\USERS\helium\helium-dev-forbuilds#\helium\helium.ant.xml:13:
java.lang.Illega
lArgumentException: URI has a fragment component
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java:541)
        at
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:148)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
140)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:96)
        at org.apache.tools.ant.Main.runBuild(Main.java:683)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by:
C:\USERS\helium\helium-dev-forbuilds#\helium\helium.ant.xml:13: java.
lang.IllegalArgumentException: URI has a fragment component
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:115)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
129)
        at
org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:146)

        ... 14 more
Caused by: java.lang.IllegalArgumentException: URI has a fragment
component
        at java.io.File.<init>(File.java:370)
        at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown
Source)

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:165)
        at
org.apache.tools.ant.util.FileUtils.fromURI(FileUtils.java:1158)
        at org.apache.tools.ant.Location.<init>(Location.java:90)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
211)
        at
org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(Projec
tHelper2.java:86)
        at nokia.ant.Antlib.createAntlib(Antlib.java:76)
        at nokia.ant.TypedefURIFix.loadAntlib(TypedefURIFix.java:460)
        at nokia.ant.TypedefURIFix.execute(TypedefURIFix.java:312)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:105)
        ... 18 more


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

Mime
View raw message