forked from oxygenxml/userguide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d19d284
commit c02f68c
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<project name="deploy-private" default="private"> | ||
|
||
|
||
<target name="private"> | ||
<property name="userguide.server">userguide.sync.ro</property> | ||
<property name="userguide.server.dir">/var/www/userguide</property> | ||
<property name="output.dir">webhelp-responsive-public</property> | ||
|
||
<sshexec host="${userguide.server}" username="${userguide.server.user}" trust="yes" password="${userguide.server.password}" failonerror="false" | ||
command="find ${userguide.server.dir} -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \;" /> | ||
|
||
|
||
<scp remoteTodir="${userguide.server.user}:${userguide.server.password}@${userguide.server}:${userguide.server.dir}/" trust="yes"> | ||
<fileset dir="${project.build.directory}/output/${output.dir}" /> | ||
</scp> | ||
|
||
</target> | ||
|
||
<target name="public"> | ||
<!-- Check for similarities with the private one. --> | ||
</target> | ||
|
||
|
||
</project> |