<project name="miniframework" default="push" basedir=".">
	<description>
		MiniFramework Build File
	</description>
	<target name="git-initialize">
		<exec executable="git" failonerror="true">
			<arg value="init"/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="remote"/>
			<arg value="add"/>
			<arg value="origin"/>
			<arg value="git@bitbucket.org:egypteam-mfw/miniframework.git"/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="init"/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="add"/>
			<arg value="."/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="commit"/>
			<arg value="-m"/>
			<arg value="Repository Initialization"/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="push"/>
			<arg value="-u"/>
			<arg value="origin"/>
			<arg value="master"/>
		</exec>
	</target>
	<target name="commit">
		<input message="Please type your comment to this commit" addproperty="commit.comment"/>
		<exec executable="git" failonerror="true">
			<arg value="add"/>
			<arg value="."/>
		</exec>
		<exec executable="git" failonerror="true">
			<arg value="commit"/>
			<arg value="-m"/>
			<arg value="${commit.comment}"/>
		</exec>
	</target>
	<target name="push" depends="commit">
		<exec executable="git" failonerror="true">
			<arg value="push"/>
			<arg value="-u"/>
			<arg value="origin"/>
			<arg value="master"/>
		</exec>
	</target>
	<target name="pull">
		<exec executable="git" failonerror="true">
			<arg value="pull"/>
		</exec>
	</target>
	<target name="console-xterm">
		<exec executable="sh" failonerror="true">
			<arg value="-c" />
			<arg value="xterm &amp;" />
		</exec>
	</target>
	<target name="console-cmd">
		<exec executable="cmd" failonerror="true">
			<arg value="/C" />
			<arg value="start" />
		</exec>
	</target>
</project>
