File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 333
333
var os_name = java.lang.System.getProperty("os.name");
334
334
var implementation = null;
335
335
var extension = null;
336
+ var pgxs = null;
336
337
for (var index = 0; index < configuration.length; index ++) {
337
338
if(configuration[index].probe(os_name)) {
338
339
implementation = configuration[index];
342
343
}
343
344
}
344
345
345
- var pgxs = new org.postgresql.pljava.pgxs.AbstractPGXS(implementation);
346
+ if ( null !== implementation )
347
+ pgxs = new org.postgresql.pljava.pgxs.AbstractPGXS(implementation);
346
348
347
349
function execute()
348
350
{
351
+ if ( null === pgxs )
352
+ {
353
+ return plugin.exceptionWrap("\
354
+ No compiling/linking rules were selected for this platform. Rules for \
355
+ supported platforms can be found below 'var configuration = [' in \
356
+ pljava-so/pom.xml. If you believe one of the supported platforms should have \
357
+ matched, studying its probe: function may reveal why it did not match. \
358
+ An expected environment variable might not be set, for example. If your \
359
+ platform is not one of those supported, please consider adding a rule set \
360
+ for it, and submitting a pull request so that PL/Java can support it.", true);
361
+ }
362
+
349
363
try
350
364
{
351
365
var files = utils.getFilesWithExtension(source_path, ".c");
You can’t perform that action at this time.
0 commit comments