~ubuntu-branches/ubuntu/trusty/javatools/trusty

« back to all changes in this revision

Viewing changes to jh_generateorbitdir

  • Committer: Bazaar Package Importer
  • Author(s): Niels Thykier, Matthew Johnson, Niels Thykier
  • Date: 2010-05-30 21:18:34 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100530211834-lru4p28pnc23ejcf
Tags: 0.31
[ Matthew Johnson ]
* Put javadoc in doc-base section Programming/Java (Closes: #579391)
* Use debian instead of debian_bundle: the latter is deprecated

[ Niels Thykier ]
* Fixed missing clean of the orbitdeps cache.
* Made jh_generateorbitdir handle absolute paths correctly.
* Updated jh_{generateorbitdir,installeclipse} manpages.
* Use "readlink -f" rather than "realpath". (Closes: #580840).
  Thanks to Colin Watson.
* Added missing set -e to jarwrapper's prerm and postinst.
* Corrected versioned depends on debhelper.
* Corrected reference to javahelper's tutorials in the eclipse helpers.
* Added manpage for jh_clean, jarwrapper and jardetector.
* Removed the deprecated jh_libs command.
  - It has been deprecated since 0.6 (Feb 2008)
* Updated the synopsis of the java-propose-classpath package to better
  describe what it provides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
if they are present in the orbit dir and clash with the name
28
28
of one of the orbit jars. If an orbit jar name clashes with a
29
29
symlink in the orbit dir, then jh_generateorbitdir will assume
30
 
that the given jar has already been symlinked and skip it.
 
30
that the given jar has already been symlinked correctly. In
 
31
this case the jar file is still recorded in the cache (see below).
31
32
 
32
33
jh_generateorbitdir will also check the default installation for
33
34
jar files on Debian systems (at the time of writing /usr/share/java),
34
35
if it cannot find the jar in the current dir.
35
36
 
 
37
Jar files replaced by jh_generateorbitdir will be recorded so that
 
38
jh_installeclipse can replace with symlinks them post install.
 
39
 
 
40
 
36
41
=head1 FILES
37
42
 
38
43
=over 4
179
184
        my @i = @inc;
180
185
        my $found = 0;
181
186
        # Only use inc-path if there is no path.
182
 
        @i = ('.') if($globpattern =~ m@/@o);
 
187
        @i = ('') if($globpattern =~ m@/@o);
183
188
        glob_loop: foreach my $p (@inc){
184
189
            foreach my $s (''. '.jar') {
185
 
                my @matches = glob("$p/$globpattern$s");
 
190
                my @matches;
 
191
                if($p eq ''){
 
192
                    @matches = glob("$globpattern$s");
 
193
                } else {
 
194
                    @matches = glob("$p/$globpattern$s");
 
195
                }
186
196
                # skip if nothing matched or it was not a glob and the file does not exist.
187
197
                next if(scalar(@matches) == 0 or ! -e $matches[0]);
188
198
                push(@res, @matches);
207
217
L<debhelper(7)>
208
218
 
209
219
This program is a part of javahelper and uses debhelper as backend. There are
210
 
also tutorials in /usr/share/javahelper.
 
220
also tutorials in /usr/share/doc/javahelper.
211
221
 
212
222
=head1 AUTHOR
213
223