-----Original Message-----
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Friday, June 06, 2014 6:19 PM
To: Tomcat Users List
Subject: Re: How to add jstl.jar to the jasper task

2014-06-06 14:06 GMT+04:00 Jeff Cai <jeff_...@symantec.com>:
> Since my source directory is not under the webapp, I have to copy the jar 
> file to the WEB-INF/lib in the source directory.
> Is there any other ways to include the jar file besides copy/paste?
>
> Jeff
>
> -----Original Message-----
> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
> Sent: Friday, June 06, 2014 5:43 PM
> To: Tomcat Users List
> Subject: Re: How to add jstl.jar to the jasper task
>
> 2014-06-06 13:36 GMT+04:00 Jeff Cai <jeff_...@symantec.com>:
>>
>> Hi,
>>
>> Jstl.jar should be added to the classpath of jasper task which is defined in 
>> ${tomcat_home}/bin/catalina-tasks.xml.
>>
>> How can I add the jstl.jar to the task’s classpath in Ant?
>>
>
>
> 1. What for?
>
> 2. Put jstl.jar into WEB-INF/lib of your webapp.
>
> 3. You can always copy-paste the content of catalina-tasks.xml into your own 
> build file and adjust it as you wish.
>
> 4.
> http://tomcat.apache.org/lists.html#tomcat-users
> -> Please format your messages as plain text, not HTML.

-> 1. Your exact version number of Apache Tomcat =?
-> 5. Do not top-post.

How do you use jasper? A fragment of your build.xml = ?

In my home /home/jeffcai, I created a test directory ant_test.

The content file /home/jeffcai/ant_test/build.xml

As long as I put jstl.jar under the uriroot/WEB-INF/lib, it can pass 
successfully.

-------------------------------------------------------------------------------------------------------------------------

<project name="Webapp Precompilation" default="all" basedir=".">

   <property name="tomcat.home" 
value="/home/jeffcai/software/apache-tomcat-8.0.8" />
   <import file="${tomcat.home}/bin/catalina-tasks.xml"/>

   <target name="jspc">

    <jasper
             validateXml="false"
             
uriroot="/home/jeffcai/software/apache-tomcat-7.0.54/webapps/examples/jsp/tagplugin"
             outputDir="/tmp/tagplugin/WEB-INF/src" />
  </target>

  <target name="all" depends="jspc">
  </target>

  <target name="cleanup">
    <delete>
        <fileset dir="tagplugin/WEB-INF/src"/>
        <fileset dir="tagplugin/WEB-INF/classes/org/apache/jsp"/>
    </delete>
  </target>

</project>

Thanks.

Jeff

-------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to