ant mail task using mail and activation jar in external location

后端 未结 3 1215
余生分开走
余生分开走 2021-01-21 08:28

I have following ant mail task -

 
    
               


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-01-21 09:03

    Unforunately you can't. You have to put Library Dependencies into the ant classpath somehow.

    This could be the ANTH_HOME/lib dir or a change to the command line arguments.

    Ant has a command-line argument to specify a lib dir:

    -lib  specifies a path to search for jars and classes
    

    You could also call ant from ant itself with that info, which may be a bit ugly:

    
      
      
      
    
    

    If you execute this task from eclipse, you can add the libs to the run definition of the task and share this run definition with other developers.

提交回复
热议问题