#125 Failure to load config file

release_3.1
closed
None
5
2012-10-10
2003-06-27
Adam Barclay
No

In some cases the ant task fails to load a configuration
file. This never happens on a first task instance but will
happen in subsequent calls. The location of the
configuration file is always the same and no chages are
made to it between calls.
The build fails with
'BUILD FAILED
file:C:/gunner/gunner/build/build-single.xml:94: Unable to
create a Checker: unable to read:
\gunner\gunner\build\tasks\checkstyle\config.xml'

Using the latest version (3.1).

Discussion

  • Logged In: YES
    user_id=746148

    Based on description I suspect this is some problem of build
    file.
    Could you, please, provide of build.xml and describe structure
    of directories you use.

     
  • Adam Barclay
    Adam Barclay
    2003-06-29

    Logged In: YES
    user_id=602034

    The structure and build process is fairly compplicated and is
    hard to describe. All of the files are located under CVS control
    here on sourceforge. (http://cvs.sourceforge.net/cgi-
    bin/viewcvs.cgi/gunner/gunner/)
    The build files are located under the build\ directory. It's split
    into three files, teh main build.xml file which controls
    everything, build-app-def.xml which contains the definitions
    of tasks, names, directories etc. and build-single.xml which is
    used by build.xml with parameters to perform a specific build
    process of a subproject of Gunner(split into sceneeditor,
    engine, commons, scripteditor and objectcompiler).

    Thanks!

     
  • Logged In: YES
    user_id=746148

    Looks like the cause of the problem is incorrect doctype of
    config.xml

    You use

    <!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Check Configuration 1.0//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_0.dtd">

    but 3.1 needs

    <!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">

    Could you please verify if this fix your problem.

     
  • Adam Barclay
    Adam Barclay
    2003-06-30

    Logged In: YES
    user_id=602034

    That was the problem. Thank you for your help!

     
  • jim barnebee
    jim barnebee
    2003-07-11

    Logged In: YES
    user_id=820752

    I've got a similar problem.. and could use some help.. I'm
    getting an error :
    file:D:/eclipse_workspace/development/bin/ant/checkstyle_buil
    d.xml:15: Unable to
    create a Checker: unable to find
    D:\eclipse_workspace\development\bin\ant\TRC_c
    hecksytle_config.xml

    It doesn't seem to matter what directory I place the
    config.xml file in..
    I checked the DTD-> I'm using 3.1 :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
    <module name="Checker">
    <module name="TreeWalker">

    etc..
    Any suggestions would be appreciated.