java - i was building my project using ANT ,but my build failed , i have tried debugging but no results -
following build out put , have tried every thing downloading compieresecuredefault.properties internet , paste in directory mentioned in output doesn't work . suggestions?
buildfile: c:\users\public\compiere\compiere\utils_dev\build.xml
init: [echo] =========== build compiere - ${env.encoding} [echo] java.home = d:\programsandfiles\java\jre6 [echo] java version = 1.6.0_45 sun microsystems inc. [exec] execute failed: java.io.ioexception: cannot run program "svnversion" (in directory "c:\users\public\compiere\compiere"): createprocess error=2, system cannot find file specified [echo] =========== svn revision core = ${svnoutput} build: toolsinit: [echo] =========== build tools ${env.compiere_version} toolscompile: toolsserver: toolsclient: toolsappsserver: toolsdatabase: toolsdistribution: init: [echo] =========== build common makedir: compile: dist: initad: [echo] =========== build ad compilead: distad: printinit: [echo] =========== build print printmakedir: printcompile: printdistribute: init: [echo] =========== build base makedir: compile: [javac] compiling 2 source files c:\users\public\compiere\compiere\base\build dist: clientinit: [echo] =========== build client clientmakedir: clientcompile: clientdistribute: [unjar] expanding: c:\users\public\compiere\compiere\common\common.jar c:\users\public\compiere\compiere\client\build [unjar] expanding: c:\users\public\compiere\compiere\ad\ad.jar c:\users\public\compiere\compiere\client\build [unjar] expanding: c:\users\public\compiere\compiere\base\base.jar c:\users\public\compiere\compiere\client\build [unjar] expanding: c:\users\public\compiere\compiere\print\print.jar c:\users\public\compiere\compiere\client\build [unjar] expanding: c:\users\public\compiere\compiere\interfaces\interfaces.jar c:\users\public\compiere\compiere\client\build [delete] deleting directory c:\users\public\compiere\compiere\client\build\meta-inf [jar] building jar: c:\users\public\compiere\compiere\lib\compiere.jar [jar] building jar: c:\users\public\compiere\compiere\lib\compiereinstall.jar compiererootinit: [echo] =========== build server root compiererootxdoclet: [echo] xdoclet=../tools [echo] uptodate=true [ejbdoclet] generating home interface 'org.compiere.session.serverbean'. [ejbdoclet] generating home interface 'org.compiere.session.statusbean'. [ejbdoclet] generating local interface 'org.compiere.session.serverbean'. [ejbdoclet] generating local interface 'org.compiere.session.statusbean'. [ejbdoclet] generating local home interface 'org.compiere.session.serverbean'. [ejbdoclet] generating local home interface 'org.compiere.session.statusbean'. [ejbdoclet] generating remote interface 'org.compiere.session.serverbean'. [ejbdoclet] generating remote interface 'org.compiere.session.statusbean'. [ejbdoclet] generating ejb deployment descriptor (ejb-jar.xml). compiererootcompile: [javac] compiling 8 source files c:\users\public\compiere\compiere\serverroot\build\classes compiererootjar: [jar] building jar: c:\users\public\compiere\compiere\serverroot\build\deploy\compiereroot.jar compiererootwar: [copy] copying 1 file c:\users\public\compiere\compiere\serverroot\src\web [war] building war: c:\users\public\compiere\compiere\serverroot\build\deploy\compiererootbase.war [delete] deleting: c:\users\public\compiere\compiere\serverroot\src\web\compiere.jnlp wascompiererootwar: [copy] copying 1 file c:\users\public\compiere\compiere\serverroot\src\web [war] building war: c:\users\public\compiere\compiere\serverroot\build\deploy\compiererootbase_was.war [delete] deleting: c:\users\public\compiere\compiere\serverroot\src\web\compiere.jnlp compiererootinterfaces: [javac] compiling 8 source files c:\users\public\compiere\compiere\interfaces\classes [jar] building jar: c:\users\public\compiere\compiere\interfaces\interfaces.jar compiererootdeployserver: [copy] copying 3 files c:\users\public\compiere\compiere\lib main: serverappsinit: [echo] =========== build server application serverappscompile: serverappsjar: [jar] building jar: c:\users\public\compiere\compiere\serverapps\build\jar\compiereapps.jar serverappswar: [war] building war: c:\users\public\compiere\compiere\serverapps\build\deploy\compiereappsbase.war serverappsdeployserver: [copy] copying 2 files c:\users\public\compiere\compiere\lib main: init: [echo] =========== build web store war: [war] building war: c:\users\public\compiere\compiere\webstore\build\deploy\compierewebstorebase.war deploy-server: [copy] copying 1 file c:\users\public\compiere\compiere\lib main: webcminit: [echo] =========== build webcm webcmcompile: webcmwar: [war] building war: c:\users\public\compiere\compiere\webcm\deploy\compierewebcmbase.war webcmdeployserver: [copy] copying 1 file c:\users\public\compiere\compiere\lib main: sqljinit: [echo] =========== build sqlj sqljcompile: sqljdist: [jar] building jar: c:\users\public\compiere\compiere\sqlj\sqlj.jar [jar] building jar: c:\users\public\compiere\compiere\sqlj\sqljdb2.jar init: [echo] =========== build extend makedir: compile: dist: [jar] building jar: c:\users\public\compiere\compiere\extend\extend.jar [unjar] expanding: c:\users\public\compiere\compiere\lib\compiere.jar c:\users\public\compiere\compiere\extend\build [jar] building jar: c:\users\public\compiere\compiere\lib\compiere.jar [jar] warning: selected jar files include meta-inf/index.list replaced newly generated one. installinit: [echo] =========== build install - ${env.encoding} installcompile: [unjar] expanding: c:\users\public\compiere\compiere\tools\lib\ant.jar c:\users\public\compiere\compiere\install\lib [unjar] expanding: c:\users\public\compiere\compiere\tools\lib\ant-launcher.jar c:\users\public\compiere\compiere\install\lib [unjar] expanding: c:\users\public\compiere\compiere\tools\lib\ant-commons-net.jar c:\users\public\compiere\compiere\install\lib [unjar] expanding: c:\users\public\compiere\compiere\tools\lib\commons-net-1.4.0.jar c:\users\public\compiere\compiere\install\lib [delete] deleting: c:\users\public\compiere\compiere\install\lib\meta-inf\manifest.mf [jar] building jar: c:\users\public\compiere\compiere\install\cinstall.jar installupdate: installdistribution: [copy] copying 9 files c:\users\public\compiere\compiere\install\build\compiere2\lib [copy] copying 1 file c:\users\public\compiere\compiere\install\build\compiere2\lib [copy] copying 1 file c:\users\public\compiere\compiere\install\build\compiere2\lib [copy] copying 1 file c:\users\public\compiere\compiere\install\build\compiere2\lib [zip] building zip: c:\users\public\compiere\compiere\install\build\compiere_${env.compiere_version_file}.zip [tar] building tar: c:\users\public\compiere\compiere\install\build\compiere_${env.compiere_version_file}.tar [gzip] building: c:\users\public\compiere\compiere\install\build\compiere_${env.compiere_version_file}.tar.gz [delete] deleting: c:\users\public\compiere\compiere\install\build\compiere_${env.compiere_version_file}.tar install: [echo] =========== install compiere [copy] copying 4 files c:\users\public\compiere\compiere\${env.compiere_install} [unzip] expanding: c:\users\public\compiere\compiere\install\build\compiere_${env.compiere_version_file}.zip c:\users\public\compiere\compiere\${env.compiere_root} setupinit: [echo] compiere server setup =================== [echo] compiere_home = d:\programsandfiles\compiere2 [echo] environment = compiereenv.properties [echo] java vm = sun [echo] database = oraclexe [echo] apps server = jboss [echo] appsdeployment= d:\programsandfiles\compiere2\jboss\server\compiere\deploy [echo] ant version = apache ant version 1.7.1 compiled on june 27 2008 [echo] java home = d:\programsandfiles\java\jre6 [echo] java version = 1.6.0_45 sun microsystems inc. [echo] windows=true jboss=true tomcat=${isappstomcat} was=${isibmwas} [echo] basejars= [echo] lib/ext= ${lib.ext.jar.exists} [echo] data/images= ${data.images.png.exists} setupcompiere: securecopy: build failed c:\users\public\compiere\compiere\utils_dev\build.xml:78: following error occurred while executing line: d:\programsandfiles\compiere2\build.xml:127: warning: not find file d:\programsandfiles\compiere2\lib\compieresecuredefault.properties copy.
total time: 8 minutes 57 seconds
unfortunately, gave lot of information, not need. error message fine (we don't need entire build output), don't have relevant section of build.xml
that's failing.
i see error:
c:\users\public\compiere\compiere\utils_dev\build.xml:78: following error occurred while executing line: d:\programsandfiles\compiere2\build.xml:127: warning: not find file \ d:\programsandfiles\compiere2\lib\compieresecuredefault.properties copy.
it looks likes you're calling 1 build file another. error reported build file in utils_dev
apparently called 1 in compiere2
. on line #127 of second build.xml
file, you're doing sort of <copy/>
task, , you're specifying somehow file lib/compieresecuredefault.properties
copied, such file not exist.
you can following:
- verify whether file
compiere2\lib\compieresecuredefault.properties
exist or doesn't exist. - if not exist, why attempting copy it? should there?
i assume you're doing this:
<copy todir="${basedir}/blah/blah" file="${basedir}/lib/compieresecuredefault.properties"/>
you change this:
<copy todir="${basedir}/blah/blah"> <fileset dir="${basedir}/lib"> <include name="compieresecuredefault.properties"/> </fileset> </copy>
the latter setup should not fail build if particular file cannot found. (it fail if directory in <fileset dir="...">
not exist.)
addendum:
well u r right code copies .properties file following.
<target name="securecopy" unless="secure.exists"> <copy file="lib/compieresecuredefault.properties" tofile="lib/compieresecure.properties" overwrite="no" /> </target>
you add:
<target name="securecopy" unless="secure.exists"> <copy file="lib/compieresecuredefault.properties" failonerror="false" tofile="lib/compieresecure.properties" overwrite="no" /> </target>
however, few more questions. property secure.exists
, , why not set? task executes if property not set.
also, file exist? reason it's failing? should exist? need figure out before adding failonerror
parameter.
Comments
Post a Comment