summaryrefslogtreecommitdiff
path: root/python/edu/build/upload_pythonInfo.xml
blob: f8d9477d1a3f9d588b9c1283ea095b84c17667df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<project name="Upload updates.xml to jetbrains.com. Effective in half an hour" default="bootstrap">
  <property name="home" value="${basedir}/../../../.."/>
  <target name="upload">
    <xmlvalidate file="${home}/build/eap/updates.xml"/>

    <property name="host" value="ftp.labs.intellij.net"/>
    <property name="user" value="idea"/>
    <property name="password" value="4pawoMauoJjjlxpIl3XG"/>

    <ftp server="${host}" action="send" binary="false" remotedir="updates" userid="${user}" password="${password}">
      <fileset file="${home}/community/python/edu/build/python.txt"/>
    </ftp>
  </target>

  <target name="bootstrap">
    <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
      <classpath>
        <fileset dir="${home}/community/lib/ant/lib">
          <include name="*.jar"/>
        </fileset>
        <fileset dir="${home}/community/lib">
          <include name="commons-net-3.1.jar"/>
          <include name="jsch-0.1.50.jar"/>
        </fileset>
      </classpath>

      <arg value="-f"/>
      <arg value="${ant.file}"/>
      <arg value="upload"/>
    </java>
  </target>
</project>