-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow for setting ESI client ID through Maven properties
- Loading branch information
Showing
2 changed files
with
106 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 43 additions & 43 deletions
86
.../eve/jeveasset/io/esi/EsiCallbackURL.java → ...asset/io/esi/EsiCallbackURL.java.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
/* | ||
* Copyright 2009-2024 Contributors (see credits.txt) | ||
* | ||
* This file is part of jEveAssets. | ||
* | ||
* jEveAssets is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* jEveAssets is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with jEveAssets; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
package net.nikr.eve.jeveasset.io.esi; | ||
|
||
|
||
public enum EsiCallbackURL { | ||
LOCALHOST("http://localhost:2221", ""), | ||
EVE_NIKR_NET("https://eve.nikr.net/jeveasset/auth", ""), | ||
; | ||
private final String url; | ||
private final String a; | ||
|
||
private EsiCallbackURL(String url, String a) { | ||
this.url = url; | ||
this.a = a; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getA() { | ||
return a; | ||
} | ||
} | ||
/* | ||
* Copyright 2009-2024 Contributors (see credits.txt) | ||
* | ||
* This file is part of jEveAssets. | ||
* | ||
* jEveAssets is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* jEveAssets is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with jEveAssets; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
package net.nikr.eve.jeveasset.io.esi; | ||
|
||
|
||
public enum EsiCallbackURL { | ||
LOCALHOST("http://localhost:2221", "${env.ESICLIENTID}"), | ||
EVE_NIKR_NET("https://eve.nikr.net/jeveasset/auth", ""), | ||
; | ||
private final String url; | ||
private final String a; | ||
|
||
private EsiCallbackURL(String url, String a) { | ||
this.url = url; | ||
this.a = a; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getA() { | ||
return a; | ||
} | ||
} |