-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpebble-antblog.xml
More file actions
41 lines (35 loc) · 1.27 KB
/
pebble-antblog.xml
File metadata and controls
41 lines (35 loc) · 1.27 KB
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
33
34
35
36
37
38
39
40
41
<project name="pebble-antblog" default="example" basedir=".">
<taskdef name="blogger.newPost" classname="pebble.ant.blogger.NewPostTask"/>
<taskdef name="metaWeblog.newPost" classname="pebble.ant.metaweblog.NewPostTask"/>
<taskdef name="metaWeblog.newMediaObject" classname="pebble.ant.metaweblog.NewMediaObjectTask"/>
<!-- content must use escaped HTML/XML tags -->
<property name="content" value="<p>Hello from Ant!</p>"/>
<property name="src" value="somefile.txt" />
<property name="dest" value="files/somefile.txt" />
<!-- example of how to post to a blog -->
<target name="example">
<blogger.newPost
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
title="Posting with Blogger API"
content="${content}"
category="java" />
<metaWeblog.newPost
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
title="Posting with MetaWeblog API"
content="${content}"
category="java" />
<metaWeblog.newMediaObject
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
src="${src}"
dest="${dest}" />
</target>
</project>