How can I specify the path of a JAR in an ant buildfile?

前端 未结 3 566
青春惊慌失措
青春惊慌失措 2020-12-19 04:04

I am executing lot of scp and sshexec and other remote commands from an ant build script. These commands don\'t work if jsch.jar isn\'

3条回答
  •  余生分开走
    2020-12-19 04:09

    Thanks all for your answers. I am managed to get it work with classloader task. This is what I did.

    
      
    
      
        
          
        
      
    
      
      
        
          
          
      
    
      
          
            
              
            
          
       
    
    

    As you can see here, I didn't have to give any dependant target for my "Test" target, it just works. It uses classloader, which appends jsch.jar to the system classloader.

提交回复
热议问题