You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/09 08:06:26 UTC
DO NOT REPLY [Bug 32597] New: -
modified selector attribute "update=fase" doesn't work
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32597>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32597
Summary: modified selector attribute "update=fase" doesn't work
Product: Ant
Version: 1.6.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: e17x-o9j5@spamex.com
I have a target for copying updated javascript and jsp files
from my workspace to my server deployment location.
Since I run ant with -quiet inside IDEA Intellji Java IDE,
I do not see any output from copy task even though I have verbose
set.
To get around that before I do the copy, I print out the
modified filesets. Here I used the update="false" attribute
which is supposed to not update the cache, so that I can check
modified again in the copy task. According to ant documentation
update attribute means "Should the cache be updated when values differ?".
Well, when I tried this, my <echo> taks will print out the file that
was changed, but the copy task does nothing. If I remove my echo
tasks between the debugging comments, then the copy taks does copy the
files I have changed.
Could you please clarify what "update=false" is supposed to do? Am
I misunderstanding this or is it a bug?
Thanks,
-Alex
<target name="copy_changed_web_resources" depends="init">
<!--begin debugging-->
<!--the update="false" doesn't seem to work -->
<fileset id="scripts" dir="${TOP}/web/html/scripts">
<type type="file"/>
<modified update="false"/>
</fileset>
<property name="scripts_p" refid="scripts"/>
<echo>scripts = ${scripts_p}</echo>
<fileset id="jsp" dir="${TOP}/web/html/jsp">
<type type="file"/>
<modified update="false"/>
</fileset>
<property name="jsp_p" refid="jsp"/>
<echo>jsp = ${jsp_p}</echo>
<!--end debugging-->
<copy todir="${WEB_DEPLOYED_ROOT}/scripts" preservelastmodified="true"
verbose="true">
<fileset dir="${TOP}/web/html/scripts">
<type type="file"/>
<modified/>
</fileset>
</copy>
<copy todir="${WEB_DEPLOYED_ROOT}/jsp" preservelastmodified="true"
verbose="true">
<fileset dir="${TOP}/web/html/jsp">
<type type="file"/>
<modified/>
</fileset>
</copy>
</target>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org