Liferay ant deployment failure

I am having problems deploying portlets and topics related to liferay from the command line using ant deploy;

execution of an example:

pwd: C: \ liferay-plugins-sdk \ themes

create.bat navy "Deep Blue"

cd deep-blue-theme

ant deployment

-> Buildfile: C: \ liferay-plugins-sdk \ themes \ deep-blue-theme \ build.xml

-> compile:

-> BUILD FAILED

-> C: \ liferay-plugins-stk \ themes \ build-common-theme.xml: 172: C: \ liferay-plugins-sdk \ themes \ deep-blue-theme \ liferay-portal-6.0.6 omcat-6.0 .29webappsROOT \ html \ themes_unstyled does not exist.

the problem seems to be related to the bold section and how the path is clearly wrong; Where is this directory located?

edit:

The problem was in my app.server.dir in the assembly. {username} .properties

+3
3

- , ant Liferay ( , SDK).

SDK , :

- Your Development Directory
  - bundles
    - data
    - deploy
    - license
    - tomcat-6.0.29
  - liferay-plugins-sdk

, Liferay, Tomcat.

build.properties SDK.

#
# Specify the paths to an unzipped Tomcat bundle.
#
app.server.type=tomcat
app.server.dir=${project.dir}/../bundles/tomcat-6.0.29
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT

build.properties, build.username.properties. ( username - ).

+5

kirkz, build.connor.properties: , , . \t . , :... liferay-portal-6.0.6 omcat... ( 6.0.6 omcat)

( , , )

+5

I decided to solve this problem only now. To check the weather, you get an unsuccessful build or not, you can try this solution:

I just used the static liferay path in this solution.

<elseif>
            <equals arg1="${theme.parent}" arg2="classic" />
            <then>
                <copy todir="docroot" overwrite="true">
                    <fileset
                        dir="C:/Liferay/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/ROOT/html/themes/classic"
                        excludes="_diffs/**,templates/**"
                    />
                </copy>

                <copy todir="docroot/templates" overwrite="true">
                    <fileset
                        dir="C:/Liferay/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/ROOT/html/themes/classic/templates"
                        includes="*.${theme.type}"
                    />
                </copy>
            </then>
        </elseif>

After you configure this code in the build-common-theme.xml file, you will not receive the omcat-6.0.29webappsROOT \ html \ themes_unstyled message .

+1
source

All Articles