Topics

Win7 Unable to run ant clean / ant realcean

steve young
 

3 weeks ago I had no issues with running command line ant clean or ant realclean, Win 7 64 bit

Since these were last working, I have
Installed Win updates
Updated local JMRI via Github Desktop to latest head of master
Installed NetBeans 11.1

NetBeans clean also produces the exact same error.

Thanks in advance,

Steve.

BUILD FAILED
C:\Users\Steve\Documents\GitHub\JMRI\build.xml:440: java.nio.file.InvalidPathException: Trailing char < > at index 41: C:\Users\Steve\Documents\GitHub\JMRI\temp
In build.xml, line 440 is

<delete dir="${tempdir}"/>
ant panelpro works fine, the full ant error for the clean is

clean:
   [delete] Deleting directory C:\Users\Steve\Documents\GitHub\JMRI\target
   [delete] Deleting directory C:\Users\Steve\Documents\GitHub\JMRI\java\tmp
 
BUILD FAILED
C:\Users\Steve\Documents\GitHub\JMRI\build.xml:440: java.nio.file.InvalidPathException: Trailing char < > at index 41: C:\Users\Steve\Documents\GitHub\JMRI\temp
        at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:191)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
        at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
        at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
        at java.io.File.toPath(File.java:2234)
        at org.apache.tools.ant.taskdefs.Delete.isDanglingSymlink(Delete.java:879)
        at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:642)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at org.apache.tools.ant.Target.execute(Target.java:449)
        at org.apache.tools.ant.Target.performTasks(Target.java:470)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:834)
        at org.apache.tools.ant.Main.startAnt(Main.java:223)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Bob Jacobsen
 

The ${tempdir} symbol is set in the project.properties file. Have you made any changes to that?

Bob

On Oct 20, 2019, at 5:56 PM, steve young via Groups.Io <icklesteve=yahoo.com@groups.io> wrote:

3 weeks ago I had no issues with running command line ant clean or ant realclean, Win 7 64 bit

Since these were last working, I have
Installed Win updates
Updated local JMRI via Github Desktop to latest head of master
Installed NetBeans 11.1

NetBeans clean also produces the exact same error.

Thanks in advance,

Steve.

BUILD FAILED
C:\Users\Steve\Documents\GitHub\JMRI\build.xml:440: java.nio.file.InvalidPathException: Trailing char < > at index 41: C:\Users\Steve\Documents\GitHub\JMRI\temp
In build.xml, line 440 is

<delete dir="${tempdir}"/>
ant panelpro works fine, the full ant error for the clean is

clean:
[delete] Deleting directory C:\Users\Steve\Documents\GitHub\JMRI\target
[delete] Deleting directory C:\Users\Steve\Documents\GitHub\JMRI\java\tmp

BUILD FAILED
C:\Users\Steve\Documents\GitHub\JMRI\build.xml:440: java.nio.file.InvalidPathException: Trailing char < > at index 41: C:\Users\Steve\Documents\GitHub\JMRI\temp
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:191)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
--
Bob Jacobsen
@BobJacobsen

Svata Dedic
 

Dne 21. 10. 19 v 5:09 Bob Jacobsen napsal(a):
The ${tempdir} symbol is set in the project.properties file. Have you made any changes to that?
Apologies; there's IS a trailing space in project.properties. Please remove it (line 49, tempdir=...).

Introduced by my commit #25b80489
Removed all trailing spaces: https://github.com/JMRI/JMRI/pull/7533

-Svata

steve young
 

Thanks for spotting Svata,

Steve.