-
Notifications
You must be signed in to change notification settings - Fork 65
/
README_DEV.txt
143 lines (90 loc) · 4.67 KB
/
README_DEV.txt
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
--------------------------------------------------------------------------------
-- Packaging and uploading to Launchpad PPA
--------------------------------------------------------------------------------
These instructions assume the upstream source tarball has been created (ant package-src -Dversion=[version])
Required packages,
* javahelper
* ubuntu-dev-tools (to test PPA builds before uploading to launchpad)
Config ~/.dput.cf,
[adriansmith]
fqdn = ppa.launchpad.net
method = ftp
incoming = ~adriansmith/upm/ubuntu/
login = anonymous
allow_unsigned_uploads = 0
1. Create a working directory,
$ mkdir /tmp/upm-swing-deb-package
2. Copy the upstream source tarball into the working directory,
$ cp upm-src-<version>.tar.gz /tmp/upm-swing-deb-package
3. Use jh_repack to clean up the upstream tarball (remove jars),
$ jh_repack --upstream-version <version> upm-src-<version>.tar.gz
4. Rename the tarball to what what the Debian packaging tools expect,
$ mv upm-src-<version>.tar.gz upm_<version>.orig.tar.gz
5. Unpack the upstream tarball,
$ tar -xzvf upm_<version>.orig.tar.gz
6. cd into the source directory,
$ cd upm-src-<version>
7. Update the changelog (using dch)
$ export DEBFULLNAME="Adrian Smith"
$ export DEBEMAIL="adrian@17od.com"
$ dch -v <version> # e.g. 1.12-1~ppa1
8. Build the source tarball and sign,
$ debuild -S -sa -k<key ID>
Use gpg --list-secret-keys to get the key ID. Look for a line like "sec 12345/12ABCDEF"; the part after the slash is the key ID.
9. Create an environment to test the build in,
$ pbuilder-dist <release> create
where <release> is for example precise, quantal or raring or in the case of Debian maybe sid. This will take a while as it will download all the necessary packages for a “minimal installation”.
10. Perform the build,
$ pbuilder-dist <release> build ../<package>_<version>.dsc
11. Upload the PPA to Launchpad,
$ dput adriansmith ../upm_<version>_source.changes
Links
* https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/ppa/
--------------------------------------------------------------------------------
-- Creating Patches for Debian build
--------------------------------------------------------------------------------
1. quilt new <name>.patch
2. quilt add <file to modify>
3. (make changes to files)
4. quilt refresh
5. quilt header -e
--------------------------------------------------------------------------------
-- Preparing Build Environment
--------------------------------------------------------------------------------
In order to test the HTTPTransport class you'll need a remote location
configured that has the UPM upload.php and delete.php files. The easiest thing
to do is,
i) install Apache
ii) install the Apache PHP module
iii) configure a new directory that points to the 'server/http/' directory that
comes with UPM, e.g.
Alias /upm/ "/home/adrian/dev/UPM/server/http/"
<Directory "/home/adrian/dev/UPM/server/http/">
Order allow,deny
Allow from all
Options Indexes MultiViews
AllowOverride All
</Directory>
iv) Configure the PHP upload setting in the PHP ini file. Mine is
'/etc/php5/apache2/php.ini' and the setting to change is,
'upload_tmp_dir = /home/adrian/dev/UPM/server/http'
v) Ensure the Apache user has write access to this directory.
Something like this will do,
chmod a+w /home/adrian/dev/UPM/server/http
--------------------------------------------------------------------------------
-- Problem Running JUnit Ant Task Within Eclipse ==
--------------------------------------------------------------------------------
The Ant plugin that comes with Eclipse doesn't have the dependant jar file,
junit.jar.
To fix this I...
1. copied junit.jar into C:\eclipse\plugins\org.apache.ant_1.6.5\lib
2. Go to Windows -> Preferences -> Ant -> Runtime
3. In the "Ant Home Entries" list hit "Add External Jar" and select the
junit.jar file just referenced
--------------------------------------------------------------------------------
-- Converting a Unicode Big Endian File to an Acceptable ResourceBundle Format
--------------------------------------------------------------------------------
Resource bundles must represent unicode characters using the \uxxxx format.
If you have a big endian unicode file you can convert it to this format using the command...
native2ascii -encoding UTF-16BE upm_cs.properties.biged > upm_cs.properties
native2ascii is a tool that comes with the Java JDK.