× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am trying to use Ant from Qshell. My OS is V5R1. I am using Ant
version 1.6.5. Here is the QSH command I am using:
java -classpath /java/lib/ant/ant.jar:/java/lib/ant/ant-launcher.jar:/java/li
 b/ant/optional.jar:/java/lib/ant/xercesImpl.jar:/java/lib/ant/xml-apis.jar or
 g.apache.tools.ant.Main

But I always get the error:
BUILD FAILED
/home/GLADSTONE/build.xml:1: Content is not allowed in prolog.

I have already done a Google search on "content is not allowed in
prolog". All of the suggestions have to do with ANT not recognizing
the build.xml file as a valid XML file.   Any ideas? What should the
CCSID on 'build.xml" be?

Here is the contents of build.xml:

<?xml version='1.0' encoding='ISO-8859-1'?>
<project name="buildanddeploy" default="A_build_war" basedir=".">
<taskdef name="os400Command"
            classname="walgreen.sgladstone.ant.OS400Command"/>

        <property name="wag.warname.short" value="sgladstone2.war" />
        <property name="wag.local.dir" value="c:\WSADexports\" />
        <property name="wag.warname.long"
value="${wag.local.dir}${wag.warname.short}" />
        <property name="wag.server.hostname" value="R32016" />
        <property name="wag.server.username" value="aplsup" />
        <property name="wag.server.password" value="" />
        <property name="wag.server.dir" value="/home/gladstone/warstaging/" />
        <property name="wag.server.webapps" value="/tomcat/webapps/" />
        <property name="wag.server.apache.name" value="PHCB531" />
        <property name="wag.server.context.name" value="samctx" />
        
        <property name="wag.os400cmdstr" value="WARDO PACTION(CRT)
PWARFILE('${wag.warname.short}') PCTX('${wag.server.context.name}')
PAPACHEIN('${wag.server.apache.name}')
PWEBAPPS('${wag.server.webapps}') PWARDIR('${wag.server.dir}')" />
        <property name="wag.projectname" value="sgladstone" />
        
        
      <target name="A_build_war">
         <echo message="About to create war file ${wag.warname.long}
for project: ${wag.projectname}"/>
        <warExport
                WARProjectName="${wag.projectname}"
            WARexportFile="${wag.warname.long}"
            ExportSource="false"
                Overwrite="true"
        />
        
        </target>
        
        <target name="B_upload_war">
        <echo message="About to upload ${wag.warname.long} to the
server: ${wag.server.hostname}"/>
        <ftp server="${wag.server.hostname}"
                       userid="${wag.server.username}"
                       password="${wag.server.password}"
                                   remotedir="${wag.server.dir}"
                               verbose="yes"
                                   action="send"        
                        >
                    <fileset file="${wag.warname.long}"/>
         </ftp>
        
                </target>
        <target name="C_deploy_war_on_OS400">
        <echo message="About to run AS/400 command: "/>
        <echo message="${wag.os400cmdstr} "/>
        <echo message="on the server: ${wag.server.hostname}"/>
        <os400Command
             command="${wag.os400cmdstr}"
                 SystemName="${wag.server.hostname}"
                 UserId="${wag.server.username}"
                 Password="${wag.server.password}"
        />
        <echo message="Done."/>

  </target>
</project>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.