facebook

ant build.xml has error File Not Found

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #230096 Reply

    Nitin
    Member

    – System Setup ——————————-
    Operating System and version: Microsoft Windows XP [Version 5.1.2600]
    Eclipse version: 3.0.2
    Eclipse build id: 200503110845
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? yes
    Other installed external plugins:
    – Clay Database Modeling Core 1.1.0
    – Clay Database Modeling Reverse Engineering 1.1.0
    – Clay Database Modeling UI 1.1.0
    – WebLogic Plug-in 1.1.1
    – XMLBuddy 2.0.50
    – jMecanic Profiler 0.6.0
    – Hibernate Synchronizer 2.3.1
    – P4WSAD – Perforce Team Provider 2004.2.3122
    – Perforce Client API 2004.2.3122
    – Perforce Team provider core 2004.2.3122
    – Perforce Team provider UI 2004.2.3122
    – HiberClipse 2.0.1
    – TomCat Plugin 3.0.0

    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 11
    MyEclipse version: 3.8.4+QF2
    Eclipse JDK version: 1.4.2_07
    Application Server JDK version: 1.4.2_07
    Are there any exceptions in the Eclipse log file? No

    – Message Body ——————————-
    The following build.xml gives an error
    File not found: “.\standard.xml (The system cannot find the file specified)”. build.xml Test line 8

    The file standard.xml is present in the same directory. Build.xml is as follows:

    <?xml version=”1.0″?>

    <!DOCTYPE project [
    <!ENTITY STANDARD-BUILD SYSTEM “file:./standard.xml”>]>
    <project name=”Test” default=”main” basedir=”.”>

    &STANDARD-BUILD;
    </project>

    #230103 Reply

    Riyad Kalla
    Member

    Nitin,
    If it is in the same dir as the XML file, try and make the file path just the name of the file, like so:

    <!ENTITY STANDARD-BUILD SYSTEM “standard.xml”>]>

    #240681 Reply

    youngka
    Member

    Hi,

    First, this is the second time I am posting this. The first time I clicked “preview” and was returned to your homepage, and the post I had written was gone. 😉

    Second, I am adding on to this thread because I am encountering a very similar issue to what the original poster had.

    
    Description                              | Resource  | In Folder | Location | Creation Time
    -------------------------------------------------------------------------------------------------------
    File not found:                       | build.xml | aFolder   | line 16     | November 2, 2005 11:55:55
    "..\properties.xml (The system        |           |           |          |
     cannot find the file specified)".    |           |           |          |
    

    Snippet from the top of my build.xml file:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE project [
      <!ENTITY properties SYSTEM "file:../properties.xml">
      <!ENTITY catalina-tasks SYSTEM "file:../catalina-tasks.xml">
    ]>
    <project name="projNameHere" 
             default="usage" 
             basedir=".">
      <description>
        App Desc here.
      </description>
      
      <!-- ================================================================= -->
      <!-- Import external XML fragments                                     -->
      <!-- ================================================================= -->
      &properties;
      &catalina-tasks;
    

    The directory setup for projects is as follows:

    
    C:\_www\eclipse-workbench\properties.xml
    C:\_www\eclipse-workbench\catalina-tasks.xml
    
    C:\_www\eclipse-workbench\aProjectName01\build.xml
    C:\_www\eclipse-workbench\aProjectName02\build.xml
    //etc...
    

    I hadn’t received this error with my build.xml until I installed MyEclipse. Is there a way to have it not parse as an error, or do I need to post this in the bug forum?

    Thanks in advance for any replies!

    Cheers,
    Keith.

    #240683 Reply

    Riyad Kalla
    Member

    Keith,
    Close the files, open the properties for the build.xml file, mark it as Derived, click OK, then right click on the project and rebuild it. That should stop the validator from trying to validate it.

    #240996 Reply

    diamonddog
    Member

    well my problem is interesting also.
    from this in the build.xml:
    <property name=”spring.dir” value=
    “C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.springframework_4.0.1\data\1.2” />

    I get:
    BUILD FAILED
    C:\java\eclipse\RentABike4\build.xml:42: C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.springframework_4.0.1\data\1.2\dist not found.

    trying everything i can think of. any help?

    #240997 Reply

    Riyad Kalla
    Member

    What happens when you copy and paste that path:
    C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.springframework_4.0.1\data\1.2\dist

    into windows explorer, does it open a dir?

    #240998 Reply

    diamonddog
    Member

    answer: no not at all, cannot find also. (didn’t know could do that with windows explorer…COOL)

    #240999 Reply

    Riyad Kalla
    Member

    Ok then let’s find you a directory that exists, what probably happened is your upgraded MyEclipse and the old dir isn’t there, the new dir is probably _4.0.2 or _4.0.3

    Just backup to the: C:\Program Files\MyEclipse\eclipse\plugins\

    dir and look for the com.genuitec.eclipse.springframework*

    dir

    #241000 Reply

    diamonddog
    Member

    OK so it is now evident, i am a newbie, but what i am trying to do here is point the build.xml at spring-framework. I am learning spring using myeclipse from a book called Spring a developer’s noteboook. Their example was:
    <property name=”spring.dir” value=”/Users/jgehtland/Tools/spring-framework-1.1.4″/> I don’t know how to translate this into
    my system installation.

    #241001 Reply

    Riyad Kalla
    Member

    Ahh, all he’s trying to do there is point at his Spring libraries, I would suggest you go to springframework.org and download the Spring zip file and unzip it somewhere, like C:\Java\springframework, then edit your Ant file to point at this dir.

    #241002 Reply

    diamonddog
    Member

    it is still com.genuitec.eclipse.springframework_4.0.1

    #241003 Reply

    diamonddog
    Member

    😛
    DONE and DONE. That was the whole thing right there. MERCI MILLE FOIS.

    #241004 Reply

    Riyad Kalla
    Member

    Not first, you should only need the giant spring.jar file.

    #241005 Reply

    diamonddog
    Member

    I have to admit I was trying sun creator studio to learn JSF and before that trying to learn EJB at the local U here, but spent
    so much time doing deployment headaches, i was totally giving up on java. but this tool of yours with eclipse. yow. it is
    really getting my interest back up. Thanks again!

    #241006 Reply

    Riyad Kalla
    Member

    Thank you Diamonddog, the technologies you are trying to learn *are* complex, glad we could help make it maybe just a hair easier.

Viewing 15 posts - 1 through 15 (of 26 total)
Reply To: ant build.xml has error File Not Found

You must be logged in to post in the forum log in