java - How to copy directory via scp within gradle task? -


What is a clean and elegant way to copy a bunch of files via SQL with SQL?

The way I am currently looking at is:

  • Use of Apache Wagon, as described here:
  • Exec Function Implementing the scope through the command line

    Is there a better (more pronounced) way to contact it?

    Use jar files for SCP files on one EC2 server from one of my projects that are local files Part of the project, I forget where I got it. Maybe there is a more concise way to do all this, but I like being very clear in my creation script.

      configuration {sshAntTask} dependency {sshAntTask fileTree (dir: 'buildSrc / lib', SshAntTask fileTree (dir: 'buildSrc / lib', includes: 'ant-jsch * .jar' }} Ant.taskdef (name: 'scp', classname: 'org.apache.tools include: .at.taskdefs.optional.ssh.Scp', classpath: configurations.sshAntTask.asPath) upload jobs dbServer () {doLast {Ant.scp (file: '...', todir: '...', keyfile: '...')}}    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -