|
hello all,
I m new to ofbiz and In the "build.xml" i am trying to read
from a file
by giving its path at console,then i am saving that path into a property
name.
i am able to load that file into a property and read it into the console
now when i am trying to copy that file then i am not able to do so?
even the following code is not giving me the result:
<target name="read-file">
<input addproperty="server-name" message="server-name"></input>
<input addproperty="file-path" message="file-path"></input>
<echo message=" this is the file path:${file-path}"></echo>
<property name="file" value="${basedir}/${file-path}">
</property>
<loadfile property="my1" srcfile="${file}"/>
<echo message="${my1}"/>
<copy file="${file}" tofile="${basedir}/t1.xml"/>
</target>
please help
|