pflg
info
.htaccess
.ssh/config
.vimrc
a2dismod
a2enmod
Alert
apache
Apache2
Apache Commons Codec
Apache Commons HttpClient
apache poi
ArgoUML
array
Background
barcode
BCrypt
BigDecimal
Boolean
branch
CellFactory
Certbot
CheckBox
checksum
cherry-pick
cmd
code runner
color
ComboBox
command.com
cookie
cron
crontab
css
cursor
data
datagrid
Date
DatePicker
DateTimeFormat
DateTimeFormatter
Debian
Dialog
DigestUtils
Docker
Dropdown
drukowanie
du
error_reporting
escape
file
FileChooser
find
FireFox
font
FOP Apache
Format
formatowanie
g+1
Generator
Git
GitLab
Google
GWT
GWT Maven Plugin
gzip
HashMap
HashSet
HashTable
html
import
Jackcess
Java
java.beans
JavaFx
jbutton
JDialog
JFileChooser
jquery
katalog
kernel.shmmax
keyword.url
Klucze
KMail
kod kreskowy
Let's Encrypt
li
Linuks
linux
LocalDate
LocalDateTime
logger
logging
logging.properties
loop
ls
Maven
Maven War plugin
mb_strtolower
md5hex
mdb
Menu
merge
mimeinfo.cache
Mobile
mouse
msaccess
MySQL
mysqldump
NetBeans
OpenSSH
parametr
parse
pdf
pdftk
pg_dump
php
php_flag
plik hosts
post
PostgreSQL
proxy
psql
quota
React
Replikacja
resources
revert
rmdir
RowFactory
rsync
runner
Samba
Scenic View
shell
SimpleDateFormat
skype
SLF4J
smbpasswd
Spam
Spam Free WordPress
span
Spinner
SpinnerValueFactory
split
sql
ssh
sshd_config
ssl
STDERR
STDOUT
string
StringEscapeUtils
swing
sysctl
TableColumn
TableView
Tailwind
template
test
TestFX
TextField
TextInput
TextInputDialog
Tomcat
Tomcat6
TreeCell
TreeTableView
twitter
TypeScript
ul
umask
UML
unit test
update-rc.d
url
user
useradd
vi
vim
Vite
vscode
wagon-maven-plugin
wagon-ssh
war
WebdriverIO
wiki
Windows
Wordpress
xls
xml
zebra
zpl
zxing
test
Tematy
Wiki
Ścieżka do pliku z resources
import
Java
resources
test
unit test
Java
File file = null; try { file = new File(URLDecoder.decode(getClass().getProtectionDomain().getCodeSource().getLocation().getPath() + "resources/file_name.xls", "UTF-8")); } catch (UnsupportedEncodingException ex) { ex.printStackTrace(); }
1
2
3
4
5
6
File
file
=
null
;
try
{
file
=
new
File
(
URLDecoder
.
decode
(
getClass
(
)
.
getProtectionDomain
(
)
.
getCodeSource
(
)
.
getLocation
(
)
.
getPath
(
)
+
"resources/file_name.xls"
,
"UTF-8"
)
)
;
}
catch
(
UnsupportedEncodingException
ex
)
{
ex
.
printStackTrace
(
)
;
}
gprzezdz
21 maja, 2018
Możliwość komentowania
Ścieżka do pliku z resources
została wyłączona