Hello, 
 
I'm writing an script to compile, make a jar and put it into CVS
repository. I'm using Eclipse. My source files are in an Eclipse project
(MySrcJava, for example) and jars are in another project (MyJars). Each
project is linked to a CVS directory. There is an ant file in MySrcJava
project that build a jar into MyJars folder. I want to add (and commit)
this jar into CVS repository. My problem is that ant file is in
MySrcJava and I don't know how to do it. 
 
When I run the script, this message appears: 
 
[cvs] cvs [add aborted]: there is a version in
C:\workspace\component_name/....../builds/lib/at4-dao already
 
 
This is my ant file. 
 
 
<?xml version="1.0" encoding="UTF-8"?>
<project default="inicio" name="compilar" basedir="..">
 
 [...] 
 
 <target name="borrar_clases">
  <echo message=" valor: ${basedir}"/>
  <delete dir="classes/*"/>
 </target>
 
 <target name="compilar_fuentes">
         <javac srcdir="src" destdir="classes" debug="on"
classpath="${classpath}">
         </javac>
 </target>
 
 <target name="crear_jar">
  
  <!-- create jar file in MyJars project -->
  <jar
destfile="${basedir}/../builds/lib/component_name/component_name.jar">
   <zipfileset dir="classes">
   </zipfileset>
  </jar>
  
 </target>
 
 <target name="autenticacion_cvs">
  <property name="cvs.host" value="ip"/>
  <property name="cvs.root"
value=":pserver:[EMAIL PROTECTED]:/relative/URL"/>
  <cvspass cvsroot="${cvs.root}" password="${cvs.password}"/>
 </target>
 
 <target name="commit_cvs_jar">
  
  <cvs cvsRoot="${cvs.root}"
   command="checkout"
   dest="${basedir}/.."
   package="CVS_PATH/builds/lib/${componente.nombre}" 
   quiet="false"/>
  
  <cvs cvsRoot="${cvs.root}" 
   command="add -m'my test'
${basedir}/../builds/lib/component_name/component_name.jar"
   quiet="false"/>
 </target>
 
 
</project>

 
 
Thank you in advance, 
 
Dani
 

Reply via email to