Updated copyright.

This commit is contained in:
Erik C. Thauvin 2018-01-16 14:31:06 -08:00
parent dedb3a4ad4
commit 96695c8bfd
5 changed files with 10 additions and 6 deletions

View file

@ -1,7 +1,7 @@
/*
* JavaExample.java
*
* Copyright (c) 2017, Erik C. Thauvin (erik@thauvin.net)
* Copyright (c) 2017-2018, Erik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,7 @@
/*
* PinboardPoster.kt
*
* Copyright (c) 2017, Erik C. Thauvin (erik@thauvin.net)
* Copyright (c) 2017-2018, Erik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,6 +36,7 @@ import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import org.xml.sax.InputSource
import java.io.File
import java.io.StringReader
import java.net.URL
import java.nio.file.Files
@ -76,6 +77,10 @@ open class PinboardPoster() {
}
}
@Suppress("unused")
@JvmOverloads
constructor(propertyFile: File, key: String = ENV_API_TOKEN) : this(propertyFile.toPath(), key)
var apiToken: String = if (System.getenv(ENV_API_TOKEN).isNullOrBlank()) "" else System.getenv(ENV_API_TOKEN)
var apiEndPoint: String = Constants.API_ENDPOINT

View file

@ -1,7 +1,7 @@
/*
* PinboardPosterTest.kt
*
* Copyright (c) 2017, Erik C. Thauvin (erik@thauvin.net)
* Copyright (c) 2017-2018, Erik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without