Skip to content

Commit

Permalink
Remove trace stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 9, 2023
1 parent 196b8db commit 3b1e6e0
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/IKVM.Maven.Sdk.Tasks/MavenReferenceItemResolve.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -54,38 +53,13 @@ public class MavenReferenceItemResolve : Task
}
};

static MSBuildLogTraceListener listener;

static MavenReferenceItemResolve()
{
IKVM.Runtime.Tracer.SetTraceLevel("jni", System.Diagnostics.TraceLevel.Verbose);
Trace.Listeners.Add(listener = new MSBuildLogTraceListener());
}

class MSBuildLogTraceListener : TraceListener
{

public Task task;

public override void Write(string message)
{
task.Log.LogMessage(message);
}

public override void WriteLine(string message)
{
task.Log.LogMessage(message);
}

}

/// <summary>
/// Initializes a new instance.
/// </summary>
public MavenReferenceItemResolve() :
base(SR.ResourceManager, "MAVEN:")
{
listener.task = this;

}

/// <summary>
Expand Down

0 comments on commit 3b1e6e0

Please sign in to comment.