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

Frank DannyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
cd C:\DEV\WebappCOBRA\int\ECSBuild\build
ant -Dtarget-project=C:\DEV\WebappCOBRA\int\ECSBuild -p

Open in new window


Tell me what happens when you run the above. If you haven't got Ant installed as an independent program (and that will fail if you don't) then i'd highly recommend it if you're working with Java
0
Frank DannyAuthor Commented:
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.
0
Frank DannyAuthor Commented:
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

0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

CEHJCommented:
'ant' is not recognized as an internal or external command,
operable program or batch file.
See my comments about installing Ant
0
Frank DannyAuthor Commented:
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

0
Frank DannyAuthor Commented:
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

0
CEHJCommented:
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)
0
Frank DannyAuthor Commented:
Ant  is in the Path: %ANT_HOME%/bin   and I can access  it on my  system
0
CEHJCommented:
That's good so can you do this and tell me the result please?

echo %PATH%

Open in new window

0
Frank DannyAuthor Commented:
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

0
CEHJCommented:
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
0
Frank DannyAuthor Commented:
I  did  but  I still  get the  same build errors
0
CEHJCommented:
Did you run the command(s) in my first comment?
0
Frank DannyAuthor Commented:
Yes I did run the commands and still getting same errors
0
CEHJCommented:
ant -d -Dtarget-project=C:\DEV\WebappCOBRA\int\ECSBuild -p >ant.log 2>&1

Open in new window

Could you run the above please and attach the resulting file 'ant.log'
0
Frank DannyAuthor Commented:
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

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

Open in new window

0
Frank DannyAuthor Commented:
@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

0
CEHJCommented:
See my earlier comment - please attach file 'ant.log'
0
Frank DannyAuthor Commented:
Thank  you @CEHJ....I was  able  to  build after  check in out a new  codebase
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Frank DannyAuthor Commented:
None of the above  solution worked
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.