write cordova plugin and overwrite an existing java code
<p>I am writing <code>MainActivity.java</code> in my custom Cordova plugin.</p>

<p>I would like to replace the existing <code>MainActivity.java</code> with my custom <code>MainActivity.java</code></p>

<p>But I am getting error </p>

<pre><code>Error: Uh oh! "&lt;path&gt;\MainActivity.java" already exists!
</code></pre>

<p>in <code>plugin.xml</code> I have specified</p>

<pre><code>&lt;source-file src="src/android/MainActivity.java" target-dir="&lt;path&gt;" /&gt;
</code></pre>

<p>Here <code>&lt;path&gt;</code> will be any path, say <code>src/com/example</code></p>

<p>Is there any additional attribute inside <code>source-file</code> tag to overwrite?</p>