java - Ant build XML not copying .so files -
java - Ant build XML not copying .so files -
i'm trying run re-create command within ant build xml file build 3rd party software source. i've tried command numerous ways various results.
attempt 1 (out of box):
<copy file="${result.grep_out}" tofile="${build.libpcap.so}" />
this fails next error:
build failed /home/pi/mydir/build.xml:612: utilize resource collection re-create directories.
so seems ".so" files (which beingness copied in case) considered special file, , cannot treated normal file.
attempt 2:
<copy todir="${build.libpcap.so}"> <fileset dir="${result.grep_out}" /> </copy>
this didn't cause build fail on line, did cause problems later .so file beingness copied took form of dir, not file @ all, , rendered useless.
attempt 3:
changing to:
<copy tofile="${build.libpcap.so}"> <fileset dir="${result.grep_out}" /> </copy>
yielded next error
build failed /home/pi/mydir/build.xml:612: cannot concatenate multiple files single file.
this makes sense, i've told re-create said dir file.
attempt 4
and finally
<copy file="${result.grep_out}" todir="${build.libpcap.so}" />
fails first error again.
build failed /home/pi/mydir/build.xml:612: utilize resource collection re-create directories.
i'm trying on arm processor, , code beingness built jnetpcap, if matters.
thanks!
update:
the preceding code, think, holds clues this.
<exec executable="locate" outproperty="result.locate_out" > <arg value="libpcap.so"/> </exec> <exec executable="grep" inputstring="${result.locate_out}" outputproperty="result.grep_out"> <arg value="libpcap.so$" /> </exec> <!-- re-create code mentioned earlier. -->
printing out output shows me first "locate" command has no output, seems causing problem. "locate", when run manually command line, has no output though libpcap.so exist on computer. issue command or how i'm running seems causing problem.
figured out! @brian helped me see ${result.grep_out} empty previous command had failed.
the "locate" command depended on (as seen in question) wasn't returning updatedb hadn't been run since installing ".so" file looking for.
simply using original re-create syntax , running "updatedb" on command line did trick!
java xml ant arm
Comments
Post a Comment