| Author |
Message |
|
|
Post subject: ant build.xml has error File Not Found
Posted: May 24, 2005 - 07:31 PM
|
|
Registered Member


Joined: Dec 15, 2004
Posts: 1
|
|
- 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> |
_________________ Nitin
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 24, 2005 - 11:08 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
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:
| Quote: |
<!ENTITY STANDARD-BUILD SYSTEM "standard.xml">]>
|
|
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 02, 2005 - 06:21 PM
|
|
Registered Member


Joined: Nov 02, 2005
Posts: 1
|
|
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.
| Code: |
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:
| Code: |
<?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:
| Code: |
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 02, 2005 - 06:44 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:13 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
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
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:25 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
What happens when you copy and paste that path:
C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.springframework_4.0.1\data
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:27 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
answer: no not at all, cannot find also. (didn't know could do that with windows explorer...COOL) |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:31 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
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 |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:33 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:35 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:36 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
it is still com.genuitec.eclipse.springframework_4.0.1 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:37 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
:P
DONE and DONE. That was the whole thing right there. MERCI MILLE FOIS. |
Last edited by diamonddog on Nov 08, 2005 - 03:44 AM; edited 1 time in total
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:43 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
Not first, you should only need the giant spring.jar file. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:47 AM
|
|
Registered Member


Joined: Oct 24, 2005
Posts: 12
|
|
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! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2005 - 03:49 AM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23855
|
|
Thank you Diamonddog, the technologies you are trying to learn *are* complex, glad we could help make it maybe just a hair easier. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|