Rename refactor bug in ant editor.

I have an ant file as below:

]]>
<target name="Init">
<tstamp/>
<delete dir="$"/> <mkdir dir="$"/> <mkdir dir="$"/> </target> <target name="clean"> <delete dir="$"/>
<delete dir="$"/> <delete dir="$"/> </target> <target name="dist" depends="clean, Init" > </target> <target name="jar" depends="Init" > <jar destfile="$/$.jar" basedir="$"/> </target> </project> When I refactor task "Init" to "init", dependency in target "dist" is not refactored. Here is the result after refactoring: <project name="xxx" default="dist" basedir="."> <property name="jarname" value="javasourcegenerator"/> <property name="src" value="src"/> <property name="build" value="classes"/> <property name="dist" value="dist"/> <property name="lib" value="lib"/> <property name="config" value="etc"/> <property name="doc" value="doc"/> <property name="DeploymentDescriptors" value="dd"/> <target name="init"> <tstamp/> <delete dir="$"/> <mkdir dir="$"/>
<mkdir dir="$"/> </target> <target name="clean"> <delete dir="$"/> <delete dir="$"/> <delete dir="$"/>
</target>
<target name="dist" depends="clean, Init" >

</target>
<target name="jar" depends="init" >
<jar destfile="$/$.jar" basedir="$"/>
</target>
</project>

2 comments
Comment actions Permalink

Sorry, I forgot to say. Built I use is 873

0
Comment actions Permalink

Please post bug report to the tracker. This list is rather for discussions.

Best regards,
Vladimir Kondratyev
_____________________
JetBrains

Gokcer Gokdal wrote:

I have an ant file as below:

<project name="xxx" default="dist" basedir=".">
<property name="jarname" value="javasourcegenerator"/>
<property name="src" value="src"/>
<property name="build" value="classes"/>
<property name="dist" value="dist"/>
<property name="lib" value="lib"/>
<property name="config" value="etc"/>
<property name="doc" value="doc"/>
<property name="DeploymentDescriptors" value="dd"/>
<target name="Init">
<tstamp/>
<delete dir="$"/> > <mkdir dir="$"/> > <mkdir dir="$"/> > </target> > <target name="clean"> > <delete dir="$"/>
<delete dir="$"/> > <delete dir="$"/> > </target> > <target name="dist" depends="clean, Init" > > > </target> > <target name="jar" depends="Init" > > <jar destfile="$/$.jar" basedir="$"/> > </target> > </project> > > When I refactor task "Init" to "init", dependency in target "dist" is not refactored. Here is the result after refactoring: > > <project name="xxx" default="dist" basedir="."> > <property name="jarname" value="javasourcegenerator"/> > <property name="src" value="src"/> > <property name="build" value="classes"/> > <property name="dist" value="dist"/> > <property name="lib" value="lib"/> > <property name="config" value="etc"/> > <property name="doc" value="doc"/> > <property name="DeploymentDescriptors" value="dd"/> > <target name="init"> > <tstamp/> > <delete dir="$"/> > <mkdir dir="$"/>
<mkdir dir="$"/> > </target> > <target name="clean"> > <delete dir="$"/> > <delete dir="$"/> > <delete dir="$"/>
</target>
<target name="dist" depends="clean, Init" >

</target>
<target name="jar" depends="init" >
<jar destfile="$/$.jar" basedir="$"/>
</target>
</project>


0

Please sign in to leave a comment.