problem with ant –f data_build.xml ... can't find build.xml Target -f does not exist

416 views
Skip to first unread message

NoviceSortOf

unread,
Apr 22, 2011, 2:38:11 PM4/22/11
to i2b2 Install Help

Working with Data Installation Guide 1.5.1.
when as instructed I issue command

ant –f data_build.xml create_metadata_tables_release_1-5

It returns
Buildfile: build.xml does not exist!

The only i2b2 build.xml file I can find is in /opt/server/default/
deploy/i2b2.war/axis2-web/scripts
but I'm uncertain that is the the file this command is looking for.

If I copy /opt/server/default/deploy/i2b2.war/axis2-web/scripts/
build.xml to
/opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata

and then attempt

ant –f data_build.xml create_metadata_tables_release_1-5

I get

BUILD FAILED
Target `–f' does not exist in this project.

Any suggestions appreciated

Phillips, Lori C.

unread,
Apr 22, 2011, 3:02:31 PM4/22/11
to i2b2-ins...@googlegroups.com

First I assume you are running the ant command from dir
/opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata'

'ant -f data_build.xml create_metadata_tables_release_1-5'
Means it is looking for the file 'data_build.xml' in the dir
/opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata

So it was not necessary to copy over the build.xml file (you probably want to
delete it
as it may cause problems)
It almost sounds as if your version of ant does not recognize the -f command
switch.
What does the command 'ant -h' return? It should show a '-f' setting.


-----Original Message-----
From: i2b2-ins...@googlegroups.com
[mailto:i2b2-ins...@googlegroups.com] On Behalf Of NoviceSortOf
Sent: Friday, April 22, 2011 2:38 PM
To: i2b2 Install Help
Subject: problem with ant -f data_build.xml ... can't find build.xml Target -f
does not exist


Working with Data Installation Guide 1.5.1.
when as instructed I issue command

ant -f data_build.xml create_metadata_tables_release_1-5

It returns
Buildfile: build.xml does not exist!

The only i2b2 build.xml file I can find is in /opt/server/default/
deploy/i2b2.war/axis2-web/scripts
but I'm uncertain that is the the file this command is looking for.

If I copy /opt/server/default/deploy/i2b2.war/axis2-web/scripts/
build.xml to
/opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata

and then attempt

ant -f data_build.xml create_metadata_tables_release_1-5

I get

BUILD FAILED
Target `-f' does not exist in this project.

Any suggestions appreciated


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

NoviceSortOf

unread,
Apr 24, 2011, 5:31:35 PM4/24/11
to i2b2 Install Help

Thanks for your reply.

ant -h does show an -f setting.

I've always been attempting this from the following folder as
instructed
* /opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata

I deleted the build.xml file I'd copied over before and then I try

ant –file data_build.xml create_metadata_tables_release_1-5

and it returns

Buildfile: build.xml does not exist!
Build failed

Apparently it expects to find a build.xml somewhere in the path but
can't find it.

I'm not sure if that is the entire problem, any suggestions?

On Apr 22, 9:02 pm, "Phillips, Lori C." <LCPHILL...@PARTNERS.ORG>
wrote:
> contains patient information, please contact the Partners Compliance HelpLine athttp://www.partners.org/complianceline. If the e-mail was sent to you in error

NoviceSortOf

unread,
Apr 25, 2011, 6:47:44 AM4/25/11
to i2b2 Install Help

After reviewing Apache Ant documentation this I had to
modify the procedure in i2B2 documentation in order to get ant to
produce any result.

Having to patch the install method at this level though does not
instill 100% confidence
that my modified method will work in the end, so I hoping for
feedback.

Here is what I did

in the
/opt/data/edu.harvard.i2b2.data/Release_1-5/NewInstall/Metadata --
directory

renamed data_build.xml to build.xml

ran

$ ant create_metadata_tables_release_1-5

It returned with what I hope the succesful results of
******************************************************************************************
Buildfile: build.xml

init:

create_metadata_tables_release_1-5:
[sql] Executing file: /opt/data/edu.harvard.i2b2.data/
Release_1-5/NewInstall/Metadata/scripts/
create_oracle_i2b2metadata_tables.sql
[sql] 0 rows affected
[sql] 0 rows affected
[sql] 0 rows affected
[sql] 0 rows affected
[sql] 0 rows affected
[sql] Executing file: /opt/data/edu.harvard.i2b2.data/
Release_1-5/NewInstall/Metadata/scripts/create_ont_update_oracle.sql
[sql] 0 rows affected
[sql] 0 rows affected
[sql] 7 of 7 SQL statements executed successfully

BUILD SUCCESSFUL
Total time: 3 seconds
******************************************************************************************

Now I realize I'm working on Ubuntu 10.10 and not CentOS. Regardless
the functionality of
apache-ant-1.6.5 should be the same on any Linux distro in an install
of this sort.

Does anyone have an explanation of this variance or possible idea as
to why this variance
might be occuring in my install?
Reply all
Reply to author
Forward
0 new messages