I wrote a build.xml file which performs replacement in another file.
When I run it with ant it reaches to the marked line and stops running until <Enter> is pressed.
It also happens in another build file in replaceregexp task.
<target name=".." >
<record name="build.log" loglevel="debug" append="true"/>
<copy file="${..}" tofile="${...}" preservelastmodified="true" overwrite="true"/> <if>
<not>
<available file="{..web.descriptor.file}"/>
</not>
<then>
<touch file="${...generated.web.descriptor.file}"/>
</then>
</if>
<!-- Load the generated file into a property. -->
<loadfile property="...generated.descriptor.replace.local"
srcfile="...generated.web.descriptor.file}"/>
<!-- Create a load file of the depend component Web (if exists).. -->
<property name="...descriptor.replace.depend" value=""/>
<property name="..generated.descriptor.replace" value="${...generated.descriptor.replace.local} ${...generated.descriptor.replace.depend}"/>
<!-- Replace the special token in the target file with the generated code. -->
<replace file="${triv.facade.web.build.static.webinf.descriptor.file}"
token="${...descriptor.replacement.token}"
value="${....generated.descriptor.replace}"/> </target>
I wrote debug meesages to verify these are the problematic lines.
The problem started after migrating to java-6 and ant 7.
Does anybody have an idea\suggestion what may be the cause for this?
This doesn't sound right. I suspect that someone modified either Ant or one of it's libraries to wait for user input at some point, possibly as a debug mechanism. Run it again, and when the script pauses, take a thread dump - that will tell you where the the input request is located. If that does not help you, post the thread dump here.