K
K
kelegorm2012-10-02 09:02:04
Programming
kelegorm, 2012-10-02 09:02:04

How to set up IntelliJ IDEA so that after the build the file is uploaded to FTP?

I work with Flash, to check the operation of the flash drive, you need to run it from the server (which is located on the virtual machine). You have to manually build the project and upload it using FileZilla. How can I automate the assembly so that the IDEA itself uploads the file to FTP?

- I have no experience with ANT, Maven, I did not figure it out.
- The possibility of a local launch is not considered.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rich, 2012-10-02
@rich

With the help of ant:
In build.xml , write

<target name="put.ftp">
 <ftp server="${ftp.server}" binary="true" verbose="true"
  userid="${ftp.userid}" password="${ftp.password}" remotedir="/">
   <fileset dir="target">
     <include name="*.swf"/>
   </fileset>
 </ftp>
</target>

In build.properties variable values ​​like
ftp.server=127.0.0.1
ftp.userid=root
ftp.password=root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question