HTRACE-55 Add Clean command to htrace go
Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/3dd2895c Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/3dd2895c Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/3dd2895c Branch: refs/heads/master Commit: 3dd2895c96b7e3fc48525b5fa309811919ceb9db Parents: dbccb99 Author: Elliott Clark <[email protected]> Authored: Mon Jan 5 10:38:37 2015 -0800 Committer: Elliott Clark <[email protected]> Committed: Mon Jan 5 11:01:35 2015 -0800 ---------------------------------------------------------------------- htrace-core/pom.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/3dd2895c/htrace-core/pom.xml ---------------------------------------------------------------------- diff --git a/htrace-core/pom.xml b/htrace-core/pom.xml index c31c49e..72884de 100644 --- a/htrace-core/pom.xml +++ b/htrace-core/pom.xml @@ -104,6 +104,23 @@ language governing permissions and limitations under the License. --> </tasks> </configuration> </execution> + <execution> + <phase>clean</phase> + <id>go_clean</id> + <goals><goal>run</goal></goals> + <configuration> + <tasks> + <exec executable="bash" failonerror="true" dir="${basedir}/src/go"> + <arg value="-c"/> + <arg value="./gobuild.sh clean"/> + </exec> + <exec executable="bash" failonerror="true" dir="${basedir}/src/go"> + <arg value="-c"/> + <arg value="rm -f ./bin/*"/> + </exec> + </tasks> + </configuration> + </execution> </executions> </plugin> <plugin>
