1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Update to 2423.

This commit is contained in:
Cedric Beust 2015-11-17 06:04:59 -08:00
parent 7fee4b0969
commit 2f3773f13b
3 changed files with 11 additions and 11 deletions

View file

@ -1,15 +1,14 @@
package com.beust.kobalt.maven
import com.beust.kobalt.misc.toString
import com.beust.kobalt.misc.log
import com.beust.kobalt.misc.toString
import com.google.inject.assistedinject.Assisted
import org.jetbrains.kotlin.codegen.intrinsics.ToString
import kotlinx.dom.childElements
import org.w3c.dom.Element
import org.w3c.dom.NodeList
import org.xml.sax.InputSource
import java.io.FileReader
import javax.xml.xpath.XPathConstants
import kotlin.dom.childElements
public class Pom @javax.inject.Inject constructor(@Assisted val id: String,
@Assisted documentFile: java.io.File) {
@ -60,7 +59,7 @@ public class Pom @javax.inject.Inject constructor(@Assisted val id: String,
init {
val DEPENDENCIES = XPATH.compile("/project/dependencies/dependency")
val document = kotlin.dom.parseXml(InputSource(FileReader(documentFile)))
val document = kotlinx.dom.parseXml(InputSource(FileReader(documentFile)))
groupId = XPATH.compile("/project/groupId").evaluate(document)
artifactId = XPATH.compile("/project/artifactId").evaluate(document)
version = XPATH.compile("/project/version").evaluate(document)

View file

@ -15,7 +15,7 @@ import java.util.concurrent.TimeUnit
import javax.inject.Inject
import javax.xml.xpath.XPathConstants
import javax.xml.xpath.XPathFactory
import kotlin.dom.parseXml
import kotlinx.dom.parseXml
/**
* Find the repo that contains the given dependency among a list of repos. Searches are performed in parallel and