• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant Build - Problems with scp task (Fileset with dir, txt files and chmod)

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to all,

I have 3 problems with scp task in Ant with Filezilla that i will explain below and I use sftp:

My code is:



My problems:

1. I have an error: JSchException - error sending directory "FilesFilezilla" (I dont want to allow the directory "FilesFilezilla" to be sent, I want only send xml, pdf and txt files)
2. I dont know why only it send xml and pdf files. Txt files types are not sent to my Filezilla.
3. I cant use in my scp chmod permissions. How I can implement chmod for files into Filezilla? I need that my xml, pdf and txt files have 777 permissions into Filezilla. e.g: <chmod perm="777" type="file">

Regards and thanks for the help.
 
Mikel Mato
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved this problem, I had a problem with one xml and it didn't allow upload the txt file. To have privilegies i had to implement filemode property into the scp task in Ant.
 
reply
    Bookmark Topic Watch Topic
  • New Topic