Link to home
Start Free TrialLog in
Avatar of Frank Danny
Frank DannyFlag for United States of America

asked on

Can anyone please help?I am new to Ant Builds.......Ant doesnt tell me which Class file is missing

Can  anyone please  help?I am new to Ant Builds.......Ant doesnt tell me which Class file is missing.



BUILD FAILED
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:107: The following error occurred while executing this line:
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:113: The following error occurred while executing this line:
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:331: The following error occurred while executing this line:
java.io.FileNotFoundException: C:\DEV\WebappCOBRA\int\${target-project}\build\build.xml (The system cannot find the path specified.)....

Open in new window

SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Danny

ASKER

Thank you@CEHJ................this  is what I am getting:-
C:\DEV\WebappCOBRA\int\ECSBuild\build>ant -Dtarget-project=C:\DEV\WebappCOBRA\int\ECSBuild -p
'ant' is not recognized as an internal or external command,
operable program or batch file.
Le me  show  also a complete  log file, may  be this  will explain  well  what is going on:-

  [echo] Building project: CCF
     [echo] Building project: CCFDAO
     [echo] Building project: CLMALC
     [echo] Building project: CLMALCDAO
     [echo] Building project: CLMGRP
     [echo] Building project: CLMGRPDAO
     [echo] Building project: CLMHST
     [echo] Building project: CLMHSTDAO
     [echo] Building project: DM
     [echo] Building project: DMDAO
     [echo] Building project: DC
     [echo] Building project: DCDAO
     [echo] Building project: FE
     [echo] Building project: FEDAO
     [echo] Building project: CO
     [echo] Building project: AR
     [echo] Building project: ARTOOL
     [echo] Building project: ARTOOLDAO
     [echo] Building project: FN
     [echo] Building project: FNDAO
     [echo] Building project: FS
     [echo] Building project: FSDAO
     [echo] Building project: HELP
     [echo] Building project: HELPDAO
     [echo] Building project: AUTSURTO
     [echo] Building project: AUTSUR
     [echo] Building project: INTF
     [echo] Building project: INTFDAO
     [echo] Building project: DOCXCHGUI
     [echo] Building project: DOCXCHGBG
     [echo] Building project: DOCXCHGBGDAO
     [echo] Building project: CLMSTTS
     [echo] Building project: CLMSTTSDAO
     [echo] Building project: ISO
     [echo] Building project: PA
     [echo] Building project: PADAO
     [echo] Building project: RM
     [echo] Building project: RMDAO
     [echo] Building project: PERF
     [echo] Building project: PERFDAO
     [echo] Building project: CRASH
     [echo] Building project: CRASHDAO
     [echo] Building project: PHYFL
     [echo] Building project: PHYFLDAO
     [echo] Building project: PM
     [echo] Building project: PMDAO
     [echo] Building project: PRNT
     [echo] Building project: PRNTDAO
     [echo] Building project: PSO
     [echo] Building project: PSODAO
     [echo] Building project: RCCLM
     [echo] Building project: RCCLMDAO
     [echo] Building project: RPT
     [echo] Building project: RPTDAO
     [echo] Building project: SA
     [echo] Building project: SADAO
     [echo] Building project: TASK
     [echo] Building project: TASKDAO
     [echo] Building project: XM
     [echo] Building project: XMDAO
     [echo] Building project: IIS
     [echo] Building project: IISDAO
     [echo] Building project: NEW_CLAIM_REVIEW
     [echo] Building project: NEW_CLAIM_REVIEWDAO
     [echo] Building project: CLMCOMM
     [echo] Building project: CLMCOMMDAO
     [echo] Building project: AUTOMATION_ANALYSIS
     [echo] Building project: AUTOMATION_ANALYSISDAO
buildProject:
     [echo] target-project: ${target-project}
invokeAntToDeleteProjectJars:
RemoveoldUtilJars:
checkForProjectJar:
invokeAnt:

BUILD FAILED
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:107: The following error occurred while executing this line:
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:113: The following error occurred while executing this line:
C:\DEV\WebappCOBRA\int\ECSBuild\build\masterbuild.xml:331: The following error occurred while executing this line:
java.io.FileNotFoundException: C:\DEV\WebappCOBRA\int\${target-project}\build\build.xml (The system cannot find the path specified.)

Total time: 2 minutes 30 seconds

Open in new window

'ant' is not recognized as an internal or external command,
operable program or batch file.
See my comments about installing Ant
I am still  getting  the  same  errors  after  installing  Ant:-
C:\Users\xgaz>ant -version
Apache Ant(TM) version 1.9.8 compiled on December 25 2016

Open in new window

Based on this  Error  it seems it can not  find a target project  but I am not  sure which project is  that:
java.io.FileNotFoundException: C:\DEV\WebappCOBRA\int\${target-project}\build\build.xml (The system cannot find the path specified.)

Open in new window

You need to ensure that ant.exe is in PATH
It could be ant.bat or ant.cmd (i can't remember but they'll all be in the same directory and it's that directory that needs to be in PATH)
Ant  is in the Path: %ANT_HOME%/bin   and I can access  it on my  system
That's good so can you do this and tell me the result please?

echo %PATH%

Open in new window

C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Docker\Docker\Resources\bin;C:\DEV\maven-3.3.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROD\ISS;C:\PROD\W0095751\DLLS;C:\Users\WOST\AppData\Local\Microsoft\WindowsApps;C:\PROGRA~1\DB2\SQLLIB\BIN;C:\PROGRA~1\DB2\SQLLIB\FUNCTION;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\PROGRAM FILES (X86)\MICRO FOCUS\RUMBA\;C:\PROGRAM FILES (X86)\MICRO FOCUS\RUMBA\SYSTEM;C:\PROD\wsd\smsnomad\;C:\Program Files (x86)\HID Global\ActivClient\;C:\Program Files\HID Global\ActivClient\;C:\Program Files (x86)\PuTTY\;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.7.0_151\bin;C:\Program Files\Git\cmd;C:\Users\gxdr\.npm-global\node_modules\@angular\cli\bin;C:\Users\gxdr\.npm-global;C:\Users\gxdr\AppData\Local\Microsoft\WindowsApps;C:\Users\gxdr\AppData\Roaming\npm;C:\Users\gxdr\AppData\Local\GitHubDesktop\bin;C:\Ant\apache-ant-1.9.8\bin

Open in new window

C:\Ant\apache-ant-1.9.8\bin

Open in new window

is good. Did you open a new cmd.exe after setting the env vars? You need to
I  did  but  I still  get the  same build errors
Did you run the command(s) in my first comment?
Yes I did run the commands and still getting same errors
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apache Ant(TM) version 1.9.8 compiled on December 25 2016
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed

Open in new window

You need to be in the correct directory first
cd C:\DEV\WebappCOBRA\int\ECSBuild\build

Open in new window

@CEHJ    I still  get  the same  error....even after  switching to the correct path:-

C:\DEV\WebappCOBRA\int\ECSBuild\build>ant -d -Dtarget-project=C:\DEV\WebappCOBRA\int\ECSBuild -p >ant.log 2>&1

Open in new window

See my earlier comment - please attach file 'ant.log'
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
None of the above  solution worked