You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Oliver Schalch <ol...@wyona.com> on 2005/08/03 14:47:03 UTC

Problem building 1.4.x

Hi,

After building successfully cocoon, I have a strange issue while trying
to build Lenya:

Writing:
D:\lenyatest_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch
Deleting:
D:\lenyatest_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch

BUILD FAILED
D:\lenyatest_1.4\src\lenya-trunk\src\targets\webapp-build.xml:116: The
following error occurred whil
e executing this line:
D:\lenyatest_1.4\src\lenya-trunk\src\targets\publets-build.xml:53:
Unable to delete file D:\lenyates
t_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch

Path are OK and the file, which should get deletet is there.
Maybe there is still something from that batch accessing it?
At least I'm sure that nothing other from my computer is access this file.

Thanks,

-- 
Oliver Schalch


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


Re: Problem building 1.4.x

Posted by Ron Wheeler <rw...@artifact-software.com>.
Once you fix this one, there is another delete that will fail as well

    <delete failonerror="false" includeEmptyDirs="true">
      <fileset dir="${tomcat.webapps.dir}" 
excludes="${target.reset.excludes}" />

These are in webapps-build.xml

Ron

Oliver Schalch wrote:

>Ron Wheeler wrote:
>
>  
>
>>I had the same problem, I cheated and modified the ant tasks to make
>>delete erors non-fatal. Worked fine.
>>    
>>
>
>Yes, I also found an earlier Post about that issue, where the solution
>was to delete the part, where it tries to delete that file out from the
>xml file.
>
>  
>
>>Probably an Ant/OS problem where a task is slow in releasing the file
>>and the delete task tries to start the delete before the file is fully
>>closed by the operating system.
>>    
>>
>
>I'm not sure but in the other posts the issue was on Suse, and I had it
>on Windows. Maybe it could be possible to check the fileaccess before
>the programm tries deletet the file. But thats just my guess, since I'm
>still on start learning alot :).
>
>Greets
>Oliver
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
>  
>

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


Re: Problem building 1.4.x

Posted by Ron Wheeler <rw...@artifact-software.com>.
My problem was on Windows 2000.
Changing the ant delete task so that the delete failure is ignored was 
very easy
added failonerror="false" to the ant tasks

    <delete verbose="true" failonerror="false" 
file="${build.webapp}/WEB-INF/cocoon.xconf.ant_patch"/>

Ron

Oliver Schalch wrote:

>Ron Wheeler wrote:
>
>  
>
>>I had the same problem, I cheated and modified the ant tasks to make
>>delete erors non-fatal. Worked fine.
>>    
>>
>
>Yes, I also found an earlier Post about that issue, where the solution
>was to delete the part, where it tries to delete that file out from the
>xml file.
>
>  
>
>>Probably an Ant/OS problem where a task is slow in releasing the file
>>and the delete task tries to start the delete before the file is fully
>>closed by the operating system.
>>    
>>
>
>I'm not sure but in the other posts the issue was on Suse, and I had it
>on Windows. Maybe it could be possible to check the fileaccess before
>the programm tries deletet the file. But thats just my guess, since I'm
>still on start learning alot :).
>
>Greets
>Oliver
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
>  
>

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


Re: Problem building 1.4.x

Posted by Oliver Schalch <ol...@wyona.com>.
Ron Wheeler wrote:

> I had the same problem, I cheated and modified the ant tasks to make
> delete erors non-fatal. Worked fine.

Yes, I also found an earlier Post about that issue, where the solution
was to delete the part, where it tries to delete that file out from the
xml file.

> Probably an Ant/OS problem where a task is slow in releasing the file
> and the delete task tries to start the delete before the file is fully
> closed by the operating system.

I'm not sure but in the other posts the issue was on Suse, and I had it
on Windows. Maybe it could be possible to check the fileaccess before
the programm tries deletet the file. But thats just my guess, since I'm
still on start learning alot :).

Greets
Oliver


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


Re: Problem building 1.4.x

Posted by Ron Wheeler <rw...@artifact-software.com>.
I had the same problem, I cheated and modified the ant tasks to make 
delete erors non-fatal. Worked fine.

Probably an Ant/OS problem where a task is slow in releasing the file 
and the delete task tries to start the delete before the file is fully 
closed by the operating system.

Ron

Oliver Schalch wrote:

>Hi,
>
>After building successfully cocoon, I have a strange issue while trying
>to build Lenya:
>
>Writing:
>D:\lenyatest_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch
>Deleting:
>D:\lenyatest_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch
>
>BUILD FAILED
>D:\lenyatest_1.4\src\lenya-trunk\src\targets\webapp-build.xml:116: The
>following error occurred whil
>e executing this line:
>D:\lenyatest_1.4\src\lenya-trunk\src\targets\publets-build.xml:53:
>Unable to delete file D:\lenyates
>t_1.4\src\lenya-trunk\build\lenya\webapp\WEB-INF\cocoon.xconf.ant_patch
>
>Path are OK and the file, which should get deletet is there.
>Maybe there is still something from that batch accessing it?
>At least I'm sure that nothing other from my computer is access this file.
>
>Thanks,
>
>  
>

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