ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <shenne...@goldenhourdata.com>
Subject RE: includesfile sanity check
Date Fri, 09 Jul 2004 00:19:51 GMT
1. Consider a refactor of your <includesfile name="${respository.includefile} if="frespository.includefile">
with a conditional using available as wrapper 
surrounding the use of a simpler <includesfile name="${respository.includefile}" > form.

2. Avoid the use of a naming convention that might conflict with ant task reserved words or
package naming conflicts.
maybe there exists a class package name of repository.includefile?
I have observed problems in the past with the use of a properties dot naming convention in
other areas ( maven:jelly).
In short change the name of your file repository.includefile to something like repo_includefile_nm

untested hack..

    <target name="check_repo_include_tgt_nm">
         <available file="${repo_includefile_nm}" property="repo_includefile_present"/>
    </target>
    <target name="alt_form_includesfile_tgt_nm" depends="check_repo_include_tgt_nm" unless="repo_includefile_present"
>
         <includesfile name="${repo_includefile_nm}">
    </target>

-----Original Message-----
From: Stebick David [mailto:David.Stebick@arbitron.com] 
Sent: Thursday, July 08, 2004 8:32 AM
To: 'Ant Users List'
Subject: RE: includesfile sanity check


I just grabbed the output for the failure, were you looking for more?  Also, permissions look
ok:

-rwxrwxrwx   1 cvsadm   cvs           15 Jul  6 12:15 repository.includefile

cat repository.includefile
**/log4j/*.jar

BUILD FAILED
/app/build/RMR/buildscripts/keystone.build.file.xml:129: Following error occured while executing
this line
/app/build/RMR/buildscripts/ant_compile-project.xml:120: Includesfile /app/build/RMR/buildscripts/repository.includefile
not found.
        at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper
..java:537)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by: /app/build/RMR/buildscripts/ant_compile-project.xml:120:
Includesfile /app/build/RMR/buildscripts/repository.includefile  not found.
        at
org.apache.tools.ant.types.PatternSet.readFiles(PatternSet.java:409)
        at org.apache.tools.ant.types.PatternSet.getIncludePatterns(PatternSet.java:326
)
        at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFil
eSet.java:385)
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileS
et.java:358)
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileS
et.java:341)
        at org.apache.tools.ant.types.Path.list(Path.java:324)
        at org.apache.tools.ant.types.Path.list(Path.java:312)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:245)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:234)
        at
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:556)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.getCompileCla
sspath(DefaultCompilerAdapter.java:147)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupJavacCom
mandlineSwitches(DefaultCompilerAdapter.java:169)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupModernJa
vacCommandlineSwitches(DefaultCompilerAdapter.java:302)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupModernJa
vacCommand(DefaultCompilerAdapter.java:316)
        at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:53)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        ... 10 more
--- Nested Exception ---
/app/build/RMR/buildscripts/ant_compile-project.xml:120: Includesfile /app/build/RMR/buildscripts/repository.includefile
not found.
        at
org.apache.tools.ant.types.PatternSet.readFiles(PatternSet.java:409)
        at org.apache.tools.ant.types.PatternSet.getIncludePatterns(PatternSet.java:326
)
        at org.apache.tools.ant.types.AbstractFileSet.setupDirectoryScanner(AbstractFil
eSet.java:385)
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileS
et.java:358)
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileS
et.java:341)
        at org.apache.tools.ant.types.Path.list(Path.java:324)
        at org.apache.tools.ant.types.Path.list(Path.java:312)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:245)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:234)
        at
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:556)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.getCompileCla
sspath(DefaultCompilerAdapter.java:147)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupJavacCom
mandlineSwitches(DefaultCompilerAdapter.java:169)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupModernJa
vacCommandlineSwitches(DefaultCompilerAdapter.java:302)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupModernJa
vacCommand(DefaultCompilerAdapter.java:316)
        at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:53)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Thursday, July 08, 2004 11:08 AM
To: user@ant.apache.org
Subject: Re: includesfile sanity check

On Thu, 8 Jul 2004, Stebick David <David.Stebick@arbitron.com> wrote:
> I double checked and everything is lower case.

Hmm, still this here

/app/build/RMR/buildscripts/ant_compile-project.xml:120: Includesfile /app/build/RMR/buildscripts/repository.includefile
not found.

stands.

You say /app/build/RMR/buildscripts/repository.includefile exists, could it be that Ant isn't
allowed to read it?

Could you throw in a -debug on when invoking Ant?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message