I have an xml file with ant tasks.
One of the tasks is
<mkdir dir="someDirectory"/>
How can I view the contents of this directory?
I tried
<echo>ls someDirectory</echo>
but this does not work
How can I view the contents of this directory? I tried I have an xml file with ant tasks. One of the tasks is How can I view the contents of this directory? I tried but this does not work Copyright © 2021 Jogjafile Inc.
view content of directory made with ant xml
216 Views
Asked by
henhen
At
<mkdir dir="someDirectory"/>
<echo>ls someDirectory</echo>
There are 1 best solutions below
Related Questions in XML
Related Questions in ANT
Related Questions in MAVEN-ANT-TASKS
Trending Questions
Popular Questions
How you do it likely depends on what you need to do with the resulting information.
Here's some ideas that might help.
The first uses a
<fileset>to gather the set of files, then thetoStringhelper to show the list.The second runs the unix
lscommand using an<exec>task - which is what you appear to be trying.For a test directory I get this output: