liferay - Failed to copy /home/[...]/ecj.jar to /usr/share/ant/lib/ecj.jar due to java.io.FileNotFoundException /usr/share/ant/lib/ecj.jar (Permission denied) -


while ant clean works fine within liferay ide, when trying command line get:

$ ant clean buildfile: /home/nico/myportlet/build.xml      [copy] copying 1 file /usr/share/ant/lib attempt copy /home/nico/liferay-plugins-sdk-6.2-ee-sp14/lib/ecj.jar /usr/share/ant/lib/ecj.jar using nio channels failed due '/usr/share/ant/lib/ecj.jar (permission denied)'.  falling streams.  build failed /home/nico/myportlet/build.xml:5: following error occurred while executing line: /home/nico/liferay-plugins-sdk-6.2-ee-sp14/portlets/build-common-portlet.xml:5: following error occurred while executing line: /home/nico/liferay-plugins-sdk-6.2-ee-sp14/build-common-plugin.xml:5: following error occurred while executing line: /home/nico/liferay-plugins-sdk-6.2-ee-sp14/build-common.xml:94: failed copy /home/nico/liferay-plugins-sdk-6.2-ee-sp14/lib/ecj.jar /usr/share/ant/lib/ecj.jar due java.io.filenotfoundexception /usr/share/ant/lib/ecj.jar (permission denied)  total time: 2 seconds 

how fix that?

just copy file manually root.

after have done that, ant happy , execute tasks without complaining.

here how on linux/mac:

sudo cp /home/nico/liferay-plugins-sdk-6.2-ee-sp14/lib/ecj.jar /usr/share/ant/lib/ 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -