annotate lib/javaexec.h @ 17249:e542fd46ad6f

maint: update all copyright year number ranges Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 01 Jan 2013 00:50:58 +0000
parents 8250f2777afc
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Execute a Java program.
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 Copyright (C) 2001-2002, 2009-2013 Free Software Foundation, Inc.
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <haible@clisp.cons.org>, 2001.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5848
diff changeset
5 This program is free software: you can redistribute it and/or modify
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5848
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5848
diff changeset
8 (at your option) any later version.
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 5848
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef _JAVAEXEC_H
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define _JAVAEXEC_H
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <stdbool.h>
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 typedef bool execute_fn (const char *progname,
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
24 const char *prog_path, char **prog_argv,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
25 void *private_data);
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* Execute a Java class.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 class_name is the Java class name to be executed.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 classpaths is a list of pathnames to be prepended to the CLASSPATH.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 use_minimal_classpath = true means to ignore the user's CLASSPATH and
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 use a minimal one. This is likely to reduce possible problems if the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 user's CLASSPATH contains garbage or a classes.zip file of the wrong
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 Java version.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 exe_dir is a directory that may contain a native executable for the class.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 args is a NULL terminated list of arguments to be passed to the program.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 If verbose, the command to be executed will be printed.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 Then the command is passed to the execute function together with the
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 private_data argument. This function returns false if OK, true on error.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 Return false if OK, true on error.
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 If quiet, error messages will not be printed. */
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 extern bool execute_java_class (const char *class_name,
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
42 const char * const *classpaths,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
43 unsigned int classpaths_count,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
44 bool use_minimal_classpath,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
45 const char *exe_dir,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
46 const char * const *args,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
47 bool verbose, bool quiet,
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 9309
diff changeset
48 execute_fn *executer, void *private_data);
5624
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49
356a0afaf162 New module 'javaexec'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 #endif /* _JAVAEXEC_H */