File tree 3 files changed +21
-5
lines changed
src/main/fish/payara/project 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " payara-vscode" ,
3
3
"displayName" : " Payara Tools" ,
4
4
"description" : " Payara Tools for Visual Studio Code" ,
5
- "version" : " 0 .0.5-SNAPSHOT " ,
5
+ "version" : " 1 .0.0 " ,
6
6
"publisher" : " Payara" ,
7
7
"icon" : " resources/payara.png" ,
8
8
"repository" : {
Original file line number Diff line number Diff line change @@ -65,13 +65,15 @@ export class Gradle implements Build {
65
65
var filename = path . join ( buildDir , artifacts [ i ] ) ;
66
66
if ( remote ) {
67
67
if ( artifacts [ i ] . endsWith ( '.war' )
68
- || artifacts [ i ] . endsWith ( '.jar' ) ) {
68
+ || artifacts [ i ] . endsWith ( '.jar' )
69
+ || artifacts [ i ] . endsWith ( '.rar' ) ) {
69
70
artifact = filename ;
70
71
break ;
71
72
}
72
73
} else {
73
74
if ( artifacts [ i ] . endsWith ( '.war' )
74
75
|| artifacts [ i ] . endsWith ( '.jar' )
76
+ || artifacts [ i ] . endsWith ( '.rar' )
75
77
|| artifacts [ i ] === this . getBuildReader ( ) . getFinalName ( ) ) {
76
78
artifact = filename ;
77
79
break ;
@@ -81,7 +83,13 @@ export class Gradle implements Build {
81
83
if ( artifact !== null ) {
82
84
callback ( artifact ) ;
83
85
} else {
84
- vscode . window . showErrorMessage ( artifact + ' not found.' ) ;
86
+ let errorMessage = 'Deployment artifact not found in the target.' ;
87
+ if ( remote ) {
88
+ vscode . window . showErrorMessage ( errorMessage
89
+ + ' Make sure the deployment file ends with .jar, .rar, or .war to deploy an application to the remote instance.' ) ;
90
+ } else {
91
+ vscode . window . showErrorMessage ( errorMessage ) ;
92
+ }
85
93
}
86
94
}
87
95
if ( code !== 0 ) {
Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ export class Maven implements Build {
64
64
var filename = path . join ( targetDir , artifacts [ i ] ) ;
65
65
if ( remote ) {
66
66
if ( artifacts [ i ] . endsWith ( '.war' )
67
- || artifacts [ i ] . endsWith ( '.jar' ) ) {
67
+ || artifacts [ i ] . endsWith ( '.jar' )
68
+ || artifacts [ i ] . endsWith ( '.rar' ) ) {
68
69
artifact = filename ;
69
70
break ;
70
71
}
71
72
} else {
72
73
if ( artifacts [ i ] . endsWith ( '.war' )
73
74
|| artifacts [ i ] . endsWith ( '.jar' )
75
+ || artifacts [ i ] . endsWith ( '.rar' )
74
76
|| artifacts [ i ] === this . getBuildReader ( ) . getFinalName ( ) ) {
75
77
artifact = filename ;
76
78
break ;
@@ -80,7 +82,13 @@ export class Maven implements Build {
80
82
if ( artifact !== null ) {
81
83
callback ( artifact ) ;
82
84
} else {
83
- vscode . window . showErrorMessage ( artifact + ' not found.' ) ;
85
+ let errorMessage = 'Deployment artifact not found in the target.' ;
86
+ if ( remote ) {
87
+ vscode . window . showErrorMessage ( errorMessage
88
+ + ' Make sure the deployment file ends with .jar, .rar, or .war to deploy an application to the remote instance.' ) ;
89
+ } else {
90
+ vscode . window . showErrorMessage ( errorMessage ) ;
91
+ }
84
92
}
85
93
}
86
94
if ( code !== 0 ) {
You can’t perform that action at this time.
0 commit comments