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
%dw 2.0 | |
output application/java | |
--- | |
[{ | |
"First Name":"Anne", | |
"Last Name":"Smith", | |
"email":"anne@email.com", | |
"Company":"ACME INC", | |
id:"1821dd44" | |
}, |
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
<flow name="dataweaveFlow"> | |
<poll doc:name="Poll"> | |
<fixed-frequency-scheduler frequency="1" startDelay="100" timeUnit="DAYS"/> | |
<logger message="tets" level="INFO" doc:name="Logger"/> | |
</poll> | |
<dw:transform-message doc:name="DropThese" metadata:id="096bae40-aafe-4bcd-bdaa-183fdd1fded6"> | |
<dw:input-payload/> | |
<dw:set-variable variableName="DropThese"><![CDATA[%dw 1.0 | |
%output application/java | |
--- |
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
package com.emoran; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.Signature; |
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
import java.io.ByteArrayInputStream; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.commons.net.ftp.FTPReply; | |
import org.apache.commons.net.ftp.FTPSClient; | |
import org.mule.api.MuleMessage; | |
import org.mule.api.transformer.TransformerException; |
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
<dw:transform-message doc:name="CSV to Object"> | |
<dw:input-payload mimeType="application/csv"> | |
<dw:reader-property name="separator" value="," /> | |
<dw:reader-property name="header" value="true" /> | |
<dw:reader-property name="quote" value=""" /> | |
<dw:reader-property name="escape" value="""" /> | |
</dw:input-payload> | |
<dw:set-payload><![CDATA[%dw 1.0 | |
%output application/java | |
--- |
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
# Maven | |
# Aurthor: Edgar Moran | |
# Build your Java project and run tests with Apache Maven. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/java | |
trigger: | |
- test | |
- emoran |
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
# Maven | |
# Build your Java project and run tests with Apache Maven. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/java | |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.emoran</groupId> | |
<artifactId>yucelmoran-azure-pipeline</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>mule-application</packaging> | |
<name>yucelmoran-azure-pipeline</name> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>yucelmoran-azure-pipeline</id> | |
<username>yucelmorans</username> | |
<!-- Treat this auth token like a password. Do not share it with anyone, including Microsoft support. --> | |
<!-- The generated token expires on or before 17/11/2019 --> | |
<password>${azure.password}</password> | |
</server> |
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
#%RAML 1.0 | |
title: Sample API | |
/persons: | |
get: | |
responses: | |
200: | |
body: | |
application/json: | |
example: | |