ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20687] - [PATCH] Enhance ExecOn with DirSets
Date Tue, 24 Jun 2003 17:03:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20687>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20687

[PATCH] Enhance ExecOn with DirSets

gus.heck@olin.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From gus.heck@olin.edu  2003-06-24 17:03 -------
hmm that strange part I think is an accidental paste. I think I might have
pasted in some code from elsewhere and then cut this out. 

Since clicking with the scroll wheel pastes for me, scrolling fast can drop
things in. This one got lucky enough to land in a comment and be a comment too,
and thus escaped notice (the usual result when this happens is just a compiler
error which is easily fixed).

A little grepping reveals that I pasted from subant... as an example of adding
dirsets I think. That fragment should simply be eliminated. I am reopening until
my doc error is fixed. Let me know if you want a patch for it.

As a further note, I will paste below my build file for checking this
functionality. Not a junit test case, but with java not understanding groups and
owners, this will have to do. 

<?xml version="1.0"?>

<project name="test" default="def" basedir=".">
  <target name="def">
    <delete>
      <fileset dir="." includes="test-*"/>
    </delete>
    <mkdir dir="test-fs"/>
    <mkdir dir="test-ds"/>
    <touch file="test-ffs"/>
    <touch file="test-fds"/>
    <apply type="both" executable="chmod">
      <arg value="444"/>
      <fileset dir="." includes="test-*"/>
    </apply>
    <chmod perm="777" type="file">
      <fileset dir="." includes="*fs"/>
      <dirset dir="." includes="*ds"/>
    </chmod> 
  </target>
</project>

This should result in something that looks like this when you do ls -l:

drwxrwxrwx    2 gus      gus          4096 Jun 24 12:15 test-ds
-r--r--r--    1 gus      gus             0 Jun 24 12:28 test-fds
-rwxrwxrwx    1 gus      gus             0 Jun 24 12:28 test-ffs
dr--r--r--    2 gus      gus          4096 Jun 24 12:15 test-fs


hmm perhaps something can be done with File.canWrite() now that I think of it...
 can't do it today though.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message