Ticket #367 (closed defect: fixed)
Can't build simple build.xml file
| Reported by: | seija@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.4.0RC3 |
| Component: | phing-core | Version: | 2.3.3 |
| Keywords: | Cc: |
Description
Hello,
following Problem: I have a build.xml file (attached) which works fine if it lies in C:\xampp and doesn't work if it lies in C:\xampp\htdocs
The error which occurs is "Can't locate default task list"
Please locate and repair this error. Or tell me how I can repair it (if it is my error )
I have installed phing with "pear install --alldeps phing/phing" and using Xampp 1.7.2
Greets Saij
Attachments
Change History
comment:2 follow-up: ↓ 9 Changed 11 months ago by mrook
- Status changed from assigned to infoneeded
I can't reproduce this using a standard XAMPP 1.7.2 install and Phing 2.3.3 (from PEAR). Could you please provide more details about the setup, the contents of c:\xampp\htdocs, and any other helpful information you can think of?
comment:3 Changed 11 months ago by anonymous
I have this problem too I think. phing works when the build.xml file is in c:\xampp\php\ but doens't work (BUILD FALED, can't load default task list) when the build.xml is in another location then the root of phing Any ideas ?
Platform : Windows XP, xampp 1.7.2, Phing 2.4.0 RC2
comment:4 Changed 11 months ago by mrook
This is very strange - I installed a clean copy of xampp 1.7.2 and phing 2.4.0rc2 on a vista machine and still can't reproduce this with the sample build file. Are you using the xampp shell or any other settings that can help me reproduce it?
comment:5 Changed 10 months ago by seija@…
Found out that the path variables are not replaced when Phing is installed via PEAR. In ticket #365 ( http://phing.info/trac/ticket/365) you can find all things that are missing (some files and some replacements). After I copied the missing files and replaced all placeholders everything works fine.
Greets Saij
comment:6 Changed 10 months ago by mrook
Saij, which package were you installing? Please try installing Phing 2.4.0RC2, that package should work fine without manual intervention.
comment:7 Changed 10 months ago by anonymous
Don't know exactly what package it was but I am very sure (99%) that it was 2.4.0RC2 Just installed it on my Debian Lenny Server and all went well. I will try it at home with my Windows machine.
comment:8 Changed 9 months ago by mrook
Saij, could you please confirm if this issue is still occurring?
comment:9 in reply to: ↑ 2 Changed 9 months ago by webmaster@…
I have this problem too: windows vista, xampp 1.7.2, php 5.3.0, pear 1.8.1
I solved this problem by adding the pear/data directory into php include_path
<< include_path = ".;D:\xampp\php\PEAR" >> include_path = ".;D:\xampp\php\PEAR;D:\xampp\php\PEAR\data"
comment:10 Changed 9 months ago by mrook
- Status changed from infoneeded to assigned
Ok, thanks for the heads up, I'll post that notice on the website.
comment:11 Changed 9 months ago by mrook
- Status changed from assigned to closed
- Resolution set to fixed


Sample build.xml file for ticket #367