Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Raju Uppalapati
ant test target only works on windows?
July 25, 2008 10:33 AM
Answer

Raju Uppalapati

Rank: Junior Member

Posts: 66

Join Date: October 24, 2007

Recent Posts

I see the following error when I run the ant test target on my linux dev env.
Are the commands to rebuild the database hardcoded to windows env?

~~~~~~~~~~~~~~~~~~~~
rebuild-mysql:

rebuild-database:

BUILD FAILED
/opt/work/liferay/build.xml:794: The following error occurred while executing this line:
/opt/work/liferay/build-test.xml:9: The following error occurred while executing this line:
/opt/work/liferay/sql/build-parent.xml:183: The following error occurred while executing this line:
/opt/work/liferay/sql/build-parent.xml:51: Execute failed: java.io.IOException: Cannot run program "cmd" (in directory "/opt/work/liferay/sql"): java.io.IOException: error=2, No such file or directory
Thiago Leão Moreira
RE: ant test target only works on windows?
July 25, 2008 5:22 PM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1081

Join Date: October 10, 2007

Recent Posts

Hey Raju,

I had the same problem! Finally I got it solved! I created a file called sql.${user.name}.properties inside the sql directory. And I configured this properties:


mysql.executable=mysql
mysql.arg.line= -u root --password=myPassword -e "source create/create-mysql.sql"
mysql.log=mysql.log


Problem solved! Try it!

Regards
Raju Uppalapati
RE: ant test target only works on windows?
July 26, 2008 9:51 AM
Answer

Raju Uppalapati

Rank: Junior Member

Posts: 66

Join Date: October 24, 2007

Recent Posts

Thanks Thiago.
After posting this message, I tried exactly the same steps and that allowed me to move forward. I think we need to make the build.xml take OS specific defaults for properties. I will look into a potential fix for it.

_raju