Douglas

Options:

1 - You can use the jde-ant-args custom variable to pass in the classpath
you want to use.

2 - There is a custom variable jde-ant-program that points to the script
that runs Ant. You could also edit the script (or create a new one) that
passes in the classpath you want to use; however, this isn't particularly
elegant (or portable), and I generally discourage doing anything fancy in
the script you use to run Ant.

3 - Modify your custom Ant tasks to allow specification of the classpath
(for an example, look at how the javac task is implemented).

HTH

Jason



                                                                                       
                                                 
                    Douglas WF                                                         
                                                 
                    Acheson              To:     [EMAIL PROTECTED]                
                                                 
                    <[EMAIL PROTECTED]        cc:     [EMAIL PROTECTED]                    
                                                 
                    om>                  Subject:     Re: jde-ant                      
                                                 
                                                                                       
                                                 
                    07/18/01                                                           
                                                 
                    11:30 AM                                                           
                                                 
                                                                                       
                                                 
                                                                                       
                                                 




Hello,

  Thanks for the reply.  I was under the impression that the custom
tasks, the ones that I have developed need to be part of the classpath
that ant uses.  So, if I were to start ant from the command line (not
under Emacs) I would include the ant.jar, parser.jar, and jaxp.jar plus
my.jar in the -classpath option to java.  I believe that the example
below will not work correctly.

Am I missing something?

Thanks ...

Douglas WF Acheson

--- [EMAIL PROTECTED] wrote:
>
> Douglas
>
> Regarding your second issue, I typically do something like the
> following in
> my ant build.xml file
>
>        <!-- Path element containing all jar files in lib directory
> -->
>        <path id="lib.class.path">
>          <fileset dir="${lib.dir}">
>            <include name="**/*.jar"/>
>          </fileset>
>        </path>
>
> Then, in my javac task, I have something like the following
>
>      <classpath>
>        <pathelement location="${build.dest.dir}"/>
>        <path refid="lib.class.path"/>
>      </classpath>
>
> BTW: I am in the process of making some (relatively extensive)
> changes to
> jde-ant (jmode-ant). One of the new features will be the ability to
> create
> a new build definition file from a template.
>
>
> Regards
> Jason
>
>
>
>
>
>                     Douglas WF
>
>                     Acheson              To:     [EMAIL PROTECTED]
>
>                     <[EMAIL PROTECTED]        cc:
>
>                     om>                  Subject:     jde-ant
>
>
>
>                     07/18/01
>
>                     09:29 AM
>
>
>
>
>
>
>
>
>
> Hello,
>
>    After finally moving to ant to build my java apps I would like to
> use the jde-ant feature (new name jmode-ant :-)  I have played with
> it
> for the last few days.  I found a potential problem using XEmacs.  I
> had to add the following code
> from
>   (let ((temp last-nonmen-event))
> to
>   (let ((temp (if (boundp 'last-nonmenu-event)
>                   last-nonmen-event
>                      nil)))
> to avoid getting a
>    Symbol's value as variable is void: last-nonmenu-event
> error.
>
> Anyways, it works -- if someone can let me know what I can do to not
> use this hack, that would be good.
>
>   Another interesting problem, I have custom targets in the ant build
> project.  How do I adjust the classpath for ant so I can add my jar
> files.
>
>   Any help would be very appreciated.
>
> Douglas WF Acheson
>
>
> =====
> Douglas WF Acheson
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
>
>
>


=====
Douglas WF Acheson

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Reply via email to