ant mail task using mail and activation jar in external location

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

I have following ant mail task -

 
    
               


        
3条回答
  •  Happy的楠姐
    2021-01-21 09:09

    See this answer to a similar question for a solution of library dependencies in ant.

    In short, put all your ant addon libs, e.g. mail.jar,activation.jar, commons in a special folder and make it available for all your ant scripts via ANT_ARGS.
    Being forced to use the exec task in ant to resolve a library dependency seems VERY strange.

    In Eclipse common practice is to create a module in your repository (cvs,subversion,git). Then every team member has that module in his workspace and simply uses Window > Preferences > Ant > Runtime > Global Entries to make those dependencies available for ant.

提交回复
热议问题