Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alan Wamser
ant create portlet error
May 21, 2010 9:00 AM
Answer

Alan Wamser

Rank: Junior Member

Posts: 26

Join Date: April 15, 2010

Recent Posts

Getting an error during the ant script... Any ideas what I'm doing wrong?


 1
 2
 3portlets alan$ ant -Dportlet.name=HelloWorld -Dportlet.display.name="Hello World" create
 4Buildfile: build.xml
 5
 6create:
 7    [unzip] Expanding: /Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/portlet.zip into /Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/HelloWorld-portlet
 8    [mkdir] Created dir: /Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/HelloWorld-portlet/docroot/WEB-INF/tld
 9
10BUILD FAILED
11/Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/build.xml:30: /Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/=/Users/alan/Apps/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/tld not found.
12
13Total time: 0 seconds
14Saruman:portlets alan$ pwd
15/Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets
16Saruman:portlets alan$ ls -l  /Users/alan/Apps/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/tld
17total 1072
18-rw-r--r--@ 1 alan  staff  10763 May 14  2009 c-rt.tld
19-rw-r--r--@ 1 alan  staff  11310 May 14  2009 c.tld
20-rw-r--r--@ 1 alan  staff  29776 May 14  2009 displaytag.tld
21-rw-r--r--@ 1 alan  staff  11409 May 14  2009 fmt-rt.tld
22-rw-r--r--@ 1 alan  staff  12580 May 14  2009 fmt.tld
23-rw-r--r--@ 1 alan  staff    720 May 19  2009 liferay-faces.tld
24-rw-r--r--@ 1 alan  staff  33464 May 19  2009 liferay-journal.tld
25-rw-r--r--@ 1 alan  staff  14241 May 19  2009 liferay-portlet-ext.tld
26-rw-r--r--@ 1 alan  staff   4185 May 19  2009 liferay-portlet.tld
27-rw-r--r--@ 1 alan  staff   2450 May 19  2009 liferay-security.tld
28-rw-r--r--@ 1 alan  staff   2371 May 19  2009 liferay-theme.tld
29-rw-r--r--@ 1 alan  staff  68599 May 19  2009 liferay-ui.tld
30-rw-r--r--@ 1 alan  staff   2163 May 19  2009 liferay-util.tld
31-rw-r--r--@ 1 alan  staff   5372 May 14  2009 sql-rt.tld
32-rw-r--r--@ 1 alan  staff   6127 May 14  2009 sql.tld
33-rw-r--r--@ 1 alan  staff   4674 May 14  2009 struts-bean-el.tld
34-rw-r--r--@ 1 alan  staff   8478 May 14  2009 struts-bean.tld
35-rw-r--r--@ 1 alan  staff  70426 May 14  2009 struts-html-el.tld
36-rw-r--r--@ 1 alan  staff  70315 May 14  2009 struts-html.tld
37-rw-r--r--@ 1 alan  staff   8288 May 14  2009 struts-logic-el.tld
38-rw-r--r--@ 1 alan  staff  14079 May 14  2009 struts-logic.tld
39-rw-r--r--@ 1 alan  staff  68312 May 14  2009 struts-nested.tld
40-rw-r--r--@ 1 alan  staff   7473 May 14  2009 struts-tiles-el.tld
41-rw-r--r--@ 1 alan  staff   7498 May 14  2009 struts-tiles.tld
42-rw-r--r--@ 1 alan  staff   7200 May 14  2009 x-rt.tld
43-rw-r--r--@ 1 alan  staff   7673 May 14  2009 x.tld
44Saruman:portlets alan$
Anshul Gupta
RE: ant create portlet error
May 21, 2010 9:30 AM
Answer

Anshul Gupta

Rank: Regular Member

Posts: 114

Join Date: February 5, 2010

Recent Posts

I think creating a folder called "tld" under "WEB-INF" directory should solve your problem.
Alan Wamser
RE: ant create portlet error
May 21, 2010 11:01 AM
Answer

Alan Wamser

Rank: Junior Member

Posts: 26

Join Date: April 15, 2010

Recent Posts

Anshul Gupta:
I think creating a folder called "tld" under "WEB-INF" directory should solve your problem.


That's kind of what i thought also... but the directory is there...

1
2
3:tld alan$ pwd
4/Users/alan/Apps/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/tld


It's not a huge issue... I can manually copy the file to the new project folder.
Prashant Yadav, PMP
RE: ant create portlet error
May 21, 2010 11:41 AM
Answer

Prashant Yadav, PMP

Rank: New Member

Posts: 11

Join Date: March 1, 2010

Recent Posts

Did you notice the path of tld dir in build fail error: /Users/alan/Sandbox/liferay-plugins-sdk-5.2.3/portlets/=/Users/alan/Apps/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/tld
Check for dir path in build.properties.