Mikel Mato

Greenhorn
+ Follow
since Jul 20, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mikel Mato

Hi all,

I would like to know how I can add jars that are in Artifactory repository using Jenkins. There could be an option into the project creation?

If not, How I can add jars of my build.xml (Ant) and that it works into Jenkins website?

Regards and thanks.
8 years ago
I solved this problem, I had a problem with one xml and it didn't allow upload the txt file. To have privilegies i had to implement filemode property into the scp task in Ant.
8 years ago
Hi all,

I have a file called "build.xml" and I need to generate tests into a HTML file with "pom.xml" (Maven) or "build.xml" (Ant). If it is possible using targets into Maven file.
Someone knows how I could write the code needed to create one HTML file with all test without JUnit? Maybe I need to create one pom.xml and surefire-report-plugin from Maven?

Part of my code is:

build.xml : (I use targets for each task)
<project name="Factura" basedir="." default="fact">
<target name="fact" depends="createFact,delFact" />
<target name="createFact">
<sql....>
</target>
<target name="delFact">
<sql....>
</target>

pom.xml : (I dont know if i can generate HTML report only with build.xml (ant))

Regards and thanks for everything.
8 years ago
Hello to all,

I have 3 problems with scp task in Ant with Filezilla that i will explain below and I use sftp:

My code is:



My problems:

1. I have an error: JSchException - error sending directory "FilesFilezilla" (I dont want to allow the directory "FilesFilezilla" to be sent, I want only send xml, pdf and txt files)
2. I dont know why only it send xml and pdf files. Txt files types are not sent to my Filezilla.
3. I cant use in my scp chmod permissions. How I can implement chmod for files into Filezilla? I need that my xml, pdf and txt files have 777 permissions into Filezilla. e.g: <chmod perm="777" type="file">

Regards and thanks for the help.
8 years ago

Jeanne Boyarsky wrote:Mikel,
Welcome to CodeRanch!

The <sql> task has an "output" attribute that lets you specify where the output should go. You can have it go to a file of any name.

Then you can use <loadFile> to read the file into a property.



Thanks Jeanne for reply my question.

It works and is very useful.

Regards.
8 years ago
Hi all, I have this xml to use with ant build and i want to obtain one variable that I will explain later:


This is my question:
How i can obtain the result of my query and put it in variable, that it is located in transaction tag and use echo tag to show the result?
I need it to show in the future the result obtained through this variable.

e.g (I think that it is similar):

Regards.
8 years ago