The sensor task does not seem to work. I don't have usermap.xml, but I use "defaultUser=testdataset". So, all issue data should be sent to the test user.
No data are sent, and there is no log file. Am I missing something here?

Are you not using the usermap.xml at all? This particular sensor, like it the previous one, must use usermap.xml even if you are using defaultUser attribute. 

  /**
  
* Optional: Specifies a default Hackystat user to send data to if users are not in
   * the Hackystat user map.  
  
*/
  private String defaultUser = "";

the doc string for the instance variable explains that the default user is the user to send data to if users are not in the usermap. However, I also should have mentioned that the defaultUser must be in the usermap.

So, try putting testdataset in the usermap and see what happens. Remember, "testdataset" is the Account Name; you have to also specify the User Key.

Let me know if there are other problems.  Oh. maybe you should make it throw an exception if there are no valid users in the usermap.

thanks, aaron

At 06:22 PM 1/26/2006, you wrote:
Hi, Aaron,

The sensor extraction works ok, it generate one xml file per jira issue.

The sensor task does not seem to work. I don't have usermap.xml, but I use "defaultUser=testdataset". So, all issue data should be sent to the test user.

However, when I run "ant sensor", it outputs

 sensor:
 [issue-sensor] Sensor enabled?: true
 [issue-sensor] Processing file: E:\work2\hackySensor_Jira2\doc\temp\HACK-1.xml
 ...
 [issue-sensor] Processing file: E:\work2\hackySensor_Jira2\doc\temp\HACK-515.xml
 [issue-sensor] Processing file: E:\work2\hackySensor_Jira2\doc\temp\HACK-516.xml

 [issue-sensor] Hackystat data on 0 Jira Issues sent to http://hackystat.ics.hawaii.edu/ (0 secs.)

No data are sent, and there is no log file. Am I missing something here?

Thanks.

Cedric




<project name="jira2.sensor.test" default="build">
 <property name="temp.dir" value="${basedir}/temp" />
 <target name="extractor">
   <mkdir dir="${temp.dir}" />
   <taskdef name="issue-extractor"
            classname="org.hackystat.sensor.jira2.JiraIssueExtractor2" />
   <issue-extractor verbose="true" outdir="${basedir}"
                    jiraServer=" http://hackydev.ics.hawaii.edu:8080/"
                    pid="10000" projectPrefix="HACK"/>
 </target>
 <target name="sensor">
   <taskdef name="issue-sensor"
           
classname="org.hackystat.sensor.jira2.JiraIssueExtractorSensor2" />
   <issue-sensor verbose="on" workspaceRoot="C:/jira/"
                 defaultUser="testdataset">
     <fileset dir="${temp.dir}">
       <include name="**.xml" />
     </fileset>
   </issue-sensor>
 </target>

 <target name="build" depends="extractor, sensor">
 </target>

</project>

Reply via email to