Skip to content

Instantly share code, notes, and snippets.

@uttesh
Created August 23, 2013 11:09
Show Gist options
  • Save uttesh/6318107 to your computer and use it in GitHub Desktop.
Save uttesh/6318107 to your computer and use it in GitHub Desktop.
<property name="new.package" value="uttesh.xxx.yyy" />
<target name="package_rename" >
<replaceregexp
match="import xxx.yyy*"
replace="import ${new.package}"
byline="true">
<fileset dir="${src.main.dir}/java/uttesh/xxx/yyy/">
<include name="**/*.java"/>
</fileset>
</replaceregexp>
<replaceregexp
match="package hbs.pft*"
replace="package ${new.package}"
byline="true">
<fileset dir="${src.main.dir}/java/uttesh/xxx/yyy/">
<include name="**/*.java"/>
</fileset>
</replaceregexp>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment