generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML4SE-343] Changed plugin description. Added possibility to send fil…
…es from the plugin directory.
- Loading branch information
mikrise2
committed
Feb 4, 2024
1 parent
2d831ac
commit 547f117
Showing
4 changed files
with
13 additions
and
6 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
9 changes: 8 additions & 1 deletion
9
ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/tracking/ExternalLogger.kt
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,13 +1,20 @@ | ||
package org.jetbrains.research.tasktracker.tracking | ||
|
||
import com.intellij.openapi.application.PathManager | ||
import org.jetbrains.research.tasktracker.config.content.Log | ||
import java.io.File | ||
import java.nio.file.Path | ||
import kotlin.io.path.Path | ||
|
||
class ExternalLogger(private val root: Path, private val log: Log) : Loggable() { | ||
class ExternalLogger(private val projectRoot: Path, private val log: Log) : Loggable() { | ||
override val logFileType: String = log.type | ||
|
||
override fun getLogFiles(): List<File> = log.logPaths.map { | ||
val root: Path = if (log.isInPluginDirectory) { | ||
Path(PathManager.getPluginsPath()) | ||
} else { | ||
projectRoot | ||
} | ||
root.resolve(it).toFile() | ||
}.filter { it.exists() } | ||
} |
4 changes: 2 additions & 2 deletions
4
ij-plugin/src/main/resources/org/jetbrains/research/tasktracker/config/info_default.yaml
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
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